diff options
author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/symfony/console/Resources | |
parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/symfony/console/Resources')
-rw-r--r-- | vendor/symfony/console/Resources/bin/hiddeninput.exe | bin | 0 -> 9216 bytes | |||
-rw-r--r-- | vendor/symfony/console/Resources/completion.bash | 94 | ||||
-rw-r--r-- | vendor/symfony/console/Resources/completion.fish | 25 | ||||
-rw-r--r-- | vendor/symfony/console/Resources/completion.zsh | 82 |
4 files changed, 201 insertions, 0 deletions
diff --git a/vendor/symfony/console/Resources/bin/hiddeninput.exe b/vendor/symfony/console/Resources/bin/hiddeninput.exe new file mode 100644 index 0000000..c8cf65e --- /dev/null +++ b/vendor/symfony/console/Resources/bin/hiddeninput.exe | |||
Binary files differ | |||
diff --git a/vendor/symfony/console/Resources/completion.bash b/vendor/symfony/console/Resources/completion.bash new file mode 100644 index 0000000..0d76eac --- /dev/null +++ b/vendor/symfony/console/Resources/completion.bash | |||
@@ -0,0 +1,94 @@ | |||
1 | # This file is part of the Symfony package. | ||
2 | # | ||
3 | # (c) Fabien Potencier <fabien@symfony.com> | ||
4 | # | ||
5 | # For the full copyright and license information, please view | ||
6 | # https://symfony.com/doc/current/contributing/code/license.html | ||
7 | |||
8 | _sf_{{ COMMAND_NAME }}() { | ||
9 | |||
10 | # Use the default completion for shell redirect operators. | ||
11 | for w in '>' '>>' '&>' '<'; do | ||
12 | if [[ $w = "${COMP_WORDS[COMP_CWORD-1]}" ]]; then | ||
13 | compopt -o filenames | ||
14 | COMPREPLY=($(compgen -f -- "${COMP_WORDS[COMP_CWORD]}")) | ||
15 | return 0 | ||
16 | fi | ||
17 | done | ||
18 | |||
19 | # Use newline as only separator to allow space in completion values | ||
20 | IFS=$'\n' | ||
21 | local sf_cmd="${COMP_WORDS[0]}" | ||
22 | |||
23 | # for an alias, get the real script behind it | ||
24 | sf_cmd_type=$(type -t $sf_cmd) | ||
25 | if [[ $sf_cmd_type == "alias" ]]; then | ||
26 | sf_cmd=$(alias $sf_cmd | sed -E "s/alias $sf_cmd='(.*)'/\1/") | ||
27 | elif [[ $sf_cmd_type == "file" ]]; then | ||
28 | sf_cmd=$(type -p $sf_cmd) | ||
29 | fi | ||
30 | |||
31 | if [[ $sf_cmd_type != "function" && ! -x $sf_cmd ]]; then | ||
32 | return 1 | ||
33 | fi | ||
34 | |||
35 | local cur prev words cword | ||
36 | _get_comp_words_by_ref -n := cur prev words cword | ||
37 | |||
38 | local completecmd=("$sf_cmd" "_complete" "--no-interaction" "-sbash" "-c$cword" "-a{{ VERSION }}") | ||
39 | for w in ${words[@]}; do | ||
40 | w=$(printf -- '%b' "$w") | ||
41 | # remove quotes from typed values | ||
42 | quote="${w:0:1}" | ||
43 | if [ "$quote" == \' ]; then | ||
44 | w="${w%\'}" | ||
45 | w="${w#\'}" | ||
46 | elif [ "$quote" == \" ]; then | ||
47 | w="${w%\"}" | ||
48 | w="${w#\"}" | ||
49 | fi | ||
50 | # empty values are ignored | ||
51 | if [ ! -z "$w" ]; then | ||
52 | completecmd+=("-i$w") | ||
53 | fi | ||
54 | done | ||
55 | |||
56 | local sfcomplete | ||
57 | if sfcomplete=$(${completecmd[@]} 2>&1); then | ||
58 | local quote suggestions | ||
59 | quote=${cur:0:1} | ||
60 | |||
61 | # Use single quotes by default if suggestions contains backslash (FQCN) | ||
62 | if [ "$quote" == '' ] && [[ "$sfcomplete" =~ \\ ]]; then | ||
63 | quote=\' | ||
64 | fi | ||
65 | |||
66 | if [ "$quote" == \' ]; then | ||
67 | # single quotes: no additional escaping (does not accept ' in values) | ||
68 | suggestions=$(for s in $sfcomplete; do printf $'%q%q%q\n' "$quote" "$s" "$quote"; done) | ||
69 | elif [ "$quote" == \" ]; then | ||
70 | # double quotes: double escaping for \ $ ` " | ||
71 | suggestions=$(for s in $sfcomplete; do | ||
72 | s=${s//\\/\\\\} | ||
73 | s=${s//\$/\\\$} | ||
74 | s=${s//\`/\\\`} | ||
75 | s=${s//\"/\\\"} | ||
76 | printf $'%q%q%q\n' "$quote" "$s" "$quote"; | ||
77 | done) | ||
78 | else | ||
79 | # no quotes: double escaping | ||
80 | suggestions=$(for s in $sfcomplete; do printf $'%q\n' $(printf '%q' "$s"); done) | ||
81 | fi | ||
82 | COMPREPLY=($(IFS=$'\n' compgen -W "$suggestions" -- $(printf -- "%q" "$cur"))) | ||
83 | __ltrim_colon_completions "$cur" | ||
84 | else | ||
85 | if [[ "$sfcomplete" != *"Command \"_complete\" is not defined."* ]]; then | ||
86 | >&2 echo | ||
87 | >&2 echo $sfcomplete | ||
88 | fi | ||
89 | |||
90 | return 1 | ||
91 | fi | ||
92 | } | ||
93 | |||
94 | complete -F _sf_{{ COMMAND_NAME }} {{ COMMAND_NAME }} | ||
diff --git a/vendor/symfony/console/Resources/completion.fish b/vendor/symfony/console/Resources/completion.fish new file mode 100644 index 0000000..1853dd8 --- /dev/null +++ b/vendor/symfony/console/Resources/completion.fish | |||
@@ -0,0 +1,25 @@ | |||
1 | # This file is part of the Symfony package. | ||
2 | # | ||
3 | # (c) Fabien Potencier <fabien@symfony.com> | ||
4 | # | ||
5 | # For the full copyright and license information, please view | ||
6 | # https://symfony.com/doc/current/contributing/code/license.html | ||
7 | |||
8 | function _sf_{{ COMMAND_NAME }} | ||
9 | set sf_cmd (commandline -o) | ||
10 | set c (count (commandline -oc)) | ||
11 | |||
12 | set completecmd "$sf_cmd[1]" "_complete" "--no-interaction" "-sfish" "-a{{ VERSION }}" | ||
13 | |||
14 | for i in $sf_cmd | ||
15 | if [ $i != "" ] | ||
16 | set completecmd $completecmd "-i$i" | ||
17 | end | ||
18 | end | ||
19 | |||
20 | set completecmd $completecmd "-c$c" | ||
21 | |||
22 | $completecmd | ||
23 | end | ||
24 | |||
25 | complete -c '{{ COMMAND_NAME }}' -a '(_sf_{{ COMMAND_NAME }})' -f | ||
diff --git a/vendor/symfony/console/Resources/completion.zsh b/vendor/symfony/console/Resources/completion.zsh new file mode 100644 index 0000000..ff76fe5 --- /dev/null +++ b/vendor/symfony/console/Resources/completion.zsh | |||
@@ -0,0 +1,82 @@ | |||
1 | #compdef {{ COMMAND_NAME }} | ||
2 | |||
3 | # This file is part of the Symfony package. | ||
4 | # | ||
5 | # (c) Fabien Potencier <fabien@symfony.com> | ||
6 | # | ||
7 | # For the full copyright and license information, please view | ||
8 | # https://symfony.com/doc/current/contributing/code/license.html | ||
9 | |||
10 | # | ||
11 | # zsh completions for {{ COMMAND_NAME }} | ||
12 | # | ||
13 | # References: | ||
14 | # - https://github.com/spf13/cobra/blob/master/zsh_completions.go | ||
15 | # - https://github.com/symfony/symfony/blob/5.4/src/Symfony/Component/Console/Resources/completion.bash | ||
16 | # | ||
17 | _sf_{{ COMMAND_NAME }}() { | ||
18 | local lastParam flagPrefix requestComp out comp | ||
19 | local -a completions | ||
20 | |||
21 | # The user could have moved the cursor backwards on the command-line. | ||
22 | # We need to trigger completion from the $CURRENT location, so we need | ||
23 | # to truncate the command-line ($words) up to the $CURRENT location. | ||
24 | # (We cannot use $CURSOR as its value does not work when a command is an alias.) | ||
25 | words=("${=words[1,CURRENT]}") lastParam=${words[-1]} | ||
26 | |||
27 | # For zsh, when completing a flag with an = (e.g., {{ COMMAND_NAME }} -n=<TAB>) | ||
28 | # completions must be prefixed with the flag | ||
29 | setopt local_options BASH_REMATCH | ||
30 | if [[ "${lastParam}" =~ '-.*=' ]]; then | ||
31 | # We are dealing with a flag with an = | ||
32 | flagPrefix="-P ${BASH_REMATCH}" | ||
33 | fi | ||
34 | |||
35 | # Prepare the command to obtain completions | ||
36 | requestComp="${words[0]} ${words[1]} _complete --no-interaction -szsh -a{{ VERSION }} -c$((CURRENT-1))" i="" | ||
37 | for w in ${words[@]}; do | ||
38 | w=$(printf -- '%b' "$w") | ||
39 | # remove quotes from typed values | ||
40 | quote="${w:0:1}" | ||
41 | if [ "$quote" = \' ]; then | ||
42 | w="${w%\'}" | ||
43 | w="${w#\'}" | ||
44 | elif [ "$quote" = \" ]; then | ||
45 | w="${w%\"}" | ||
46 | w="${w#\"}" | ||
47 | fi | ||
48 | # empty values are ignored | ||
49 | if [ ! -z "$w" ]; then | ||
50 | i="${i}-i${w} " | ||
51 | fi | ||
52 | done | ||
53 | |||
54 | # Ensure at least 1 input | ||
55 | if [ "${i}" = "" ]; then | ||
56 | requestComp="${requestComp} -i\" \"" | ||
57 | else | ||
58 | requestComp="${requestComp} ${i}" | ||
59 | fi | ||
60 | |||
61 | # Use eval to handle any environment variables and such | ||
62 | out=$(eval ${requestComp} 2>/dev/null) | ||
63 | |||
64 | while IFS='\n' read -r comp; do | ||
65 | if [ -n "$comp" ]; then | ||
66 | # If requested, completions are returned with a description. | ||
67 | # The description is preceded by a TAB character. | ||
68 | # For zsh's _describe, we need to use a : instead of a TAB. | ||
69 | # We first need to escape any : as part of the completion itself. | ||
70 | comp=${comp//:/\\:} | ||
71 | local tab=$(printf '\t') | ||
72 | comp=${comp//$tab/:} | ||
73 | completions+=${comp} | ||
74 | fi | ||
75 | done < <(printf "%s\n" "${out[@]}") | ||
76 | |||
77 | # Let inbuilt _describe handle completions | ||
78 | eval _describe "completions" completions $flagPrefix | ||
79 | return $? | ||
80 | } | ||
81 | |||
82 | compdef _sf_{{ COMMAND_NAME }} {{ COMMAND_NAME }} | ||