File tree Expand file tree Collapse file tree 9 files changed +9
-9
lines changed
examples/completions/src/lib Expand file tree Collapse file tree 9 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
s . required_ruby_version = ">= 2.7.0"
19
19
20
20
s . add_runtime_dependency 'colsole' , '~> 0.6'
21
- s . add_runtime_dependency 'completely' , '~> 0.2 '
21
+ s . add_runtime_dependency 'completely' , '~> 0.3 '
22
22
s . add_runtime_dependency 'mister_bin' , '~> 0.7'
23
23
s . add_runtime_dependency 'requires' , '~> 0.1'
24
24
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ send_completions() {
7
7
echo $' # Modifying it manually is not recommended'
8
8
echo $' _cli_completions() {'
9
9
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10
- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
10
+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
11
11
echo $' '
12
12
echo $' case "$comp_line" in'
13
13
echo $' \' completions\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ send_completions() {
7
7
echo $'# Modifying it manually is not recommended'
8
8
echo $'_cli_completions() {'
9
9
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10
- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
10
+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
11
11
echo $''
12
12
echo $' case "$comp_line" in'
13
13
echo $' \'download\'*) COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur")) ;;'
Original file line number Diff line number Diff line change 5
5
# Modifying it manually is not recommended
6
6
_cli_completions () {
7
7
local cur=${COMP_WORDS[COMP_CWORD]}
8
- local comp_line=" ${COMP_WORDS[* ]: 1} "
8
+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
9
9
10
10
case " $comp_line " in
11
11
' download' * ) COMPREPLY=($( compgen -W " --force --help -f -h" -- " $cur " ) ) ;;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ custom_name() {
6
6
echo $'# Modifying it manually is not recommended'
7
7
echo $'_get_completions() {'
8
8
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
9
- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
9
+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
10
10
echo $''
11
11
echo $' case "$comp_line" in'
12
12
echo $' \'\'*) COMPREPLY=($(compgen -A file -W "--force --help --verbose --version -h -v" -- "$cur")) ;;'
Original file line number Diff line number Diff line change 5
5
# Modifying it manually is not recommended
6
6
_say_completions () {
7
7
local cur=${COMP_WORDS[COMP_CWORD]}
8
- local comp_line=" ${COMP_WORDS[* ]: 1} "
8
+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
9
9
10
10
case " $comp_line " in
11
11
' goodbye universe' * ) COMPREPLY=($( compgen -W " $( git branch) --color --help --verbose -c -h -v" -- " $cur " ) ) ;;
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ Options:
70
70
# Modifying it manually is not recommended
71
71
_cli_completions() {
72
72
local cur=${COMP_WORDS[COMP_CWORD]}
73
- local comp_line="${COMP_WORDS[* ]:1}"
73
+ local comp_line="${COMP_WORDS[@ ]:1}"
74
74
75
75
case "$comp_line" in
76
76
'completions'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
Original file line number Diff line number Diff line change 10
10
echo $'# Modifying it manually is not recommended'
11
11
echo $'_download_completions() {'
12
12
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
13
- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
13
+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
14
14
echo $''
15
15
echo $' case "$comp_line" in'
16
16
echo $' \'\'*) COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur")) ;;'
Original file line number Diff line number Diff line change 8
8
# Modifying it manually is not recommended
9
9
_download_completions() {
10
10
local cur=${COMP_WORDS[COMP_CWORD]}
11
- local comp_line="${COMP_WORDS[* ]:1}"
11
+ local comp_line="${COMP_WORDS[@ ]:1}"
12
12
13
13
case "$comp_line" in
14
14
''*) COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur")) ;;
You can’t perform that action at this time.
0 commit comments