composer update
This commit is contained in:
+13
-3
@@ -6,8 +6,18 @@
|
||||
# https://symfony.com/doc/current/contributing/code/license.html
|
||||
|
||||
_sf_{{ COMMAND_NAME }}() {
|
||||
|
||||
# Use the default completion for shell redirect operators.
|
||||
for w in '>' '>>' '&>' '<'; do
|
||||
if [[ $w = "${COMP_WORDS[COMP_CWORD-1]}" ]]; then
|
||||
compopt -o filenames
|
||||
COMPREPLY=($(compgen -f -- "${COMP_WORDS[COMP_CWORD]}"))
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
# Use newline as only separator to allow space in completion values
|
||||
IFS=$'\n'
|
||||
local IFS=$'\n'
|
||||
local sf_cmd="${COMP_WORDS[0]}"
|
||||
|
||||
# for an alias, get the real script behind it
|
||||
@@ -27,7 +37,7 @@ _sf_{{ COMMAND_NAME }}() {
|
||||
|
||||
local completecmd=("$sf_cmd" "_complete" "--no-interaction" "-sbash" "-c$cword" "-a{{ VERSION }}")
|
||||
for w in ${words[@]}; do
|
||||
w=$(printf -- '%b' "$w")
|
||||
w="${w//\\\\/\\}"
|
||||
# remove quotes from typed values
|
||||
quote="${w:0:1}"
|
||||
if [ "$quote" == \' ]; then
|
||||
@@ -44,7 +54,7 @@ _sf_{{ COMMAND_NAME }}() {
|
||||
done
|
||||
|
||||
local sfcomplete
|
||||
if sfcomplete=$(${completecmd[@]} 2>&1); then
|
||||
if sfcomplete=$(SHELL_VERBOSITY=0 ${completecmd[@]} 2>&1); then
|
||||
local quote suggestions
|
||||
quote=${cur:0:1}
|
||||
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ function _sf_{{ COMMAND_NAME }}
|
||||
|
||||
set completecmd $completecmd "-c$c"
|
||||
|
||||
set sfcomplete ($completecmd)
|
||||
set sfcomplete (env SHELL_VERBOSITY=0 $completecmd)
|
||||
|
||||
for i in $sfcomplete
|
||||
echo $i
|
||||
|
||||
+3
-1
@@ -1,3 +1,5 @@
|
||||
#compdef {{ COMMAND_NAME }}
|
||||
|
||||
# This file is part of the Symfony package.
|
||||
#
|
||||
# (c) Fabien Potencier <fabien@symfony.com>
|
||||
@@ -57,7 +59,7 @@ _sf_{{ COMMAND_NAME }}() {
|
||||
fi
|
||||
|
||||
# Use eval to handle any environment variables and such
|
||||
out=$(eval ${requestComp} 2>/dev/null)
|
||||
out=$(eval SHELL_VERBOSITY=0 ${requestComp} 2>/dev/null)
|
||||
|
||||
while IFS='\n' read -r comp; do
|
||||
if [ -n "$comp" ]; then
|
||||
|
||||
Reference in New Issue
Block a user