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|
1818 s . required_ruby_version = ">= 2.7.0"
1919
2020 s . add_runtime_dependency 'colsole' , '~> 0.6'
21- s . add_runtime_dependency 'completely' , '~> 0.2 '
21+ s . add_runtime_dependency 'completely' , '~> 0.3 '
2222 s . add_runtime_dependency 'mister_bin' , '~> 0.7'
2323 s . add_runtime_dependency 'requires' , '~> 0.1'
2424
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ send_completions() {
77 echo $' # Modifying it manually is not recommended'
88 echo $' _cli_completions() {'
99 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
10+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
1111 echo $' '
1212 echo $' case "$comp_line" in'
1313 echo $' \' completions\' *) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ send_completions() {
77 echo $'# Modifying it manually is not recommended'
88 echo $'_cli_completions() {'
99 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
10+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
1111 echo $''
1212 echo $' case "$comp_line" in'
1313 echo $' \'download\'*) COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur")) ;;'
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66_cli_completions () {
77 local cur=${COMP_WORDS[COMP_CWORD]}
8- local comp_line=" ${COMP_WORDS[* ]: 1} "
8+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
99
1010 case " $comp_line " in
1111 ' 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() {
66 echo $'# Modifying it manually is not recommended'
77 echo $'_get_completions() {'
88 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
9- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
9+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
1010 echo $''
1111 echo $' case "$comp_line" in'
1212 echo $' \'\'*) COMPREPLY=($(compgen -A file -W "--force --help --verbose --version -h -v" -- "$cur")) ;;'
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66_say_completions () {
77 local cur=${COMP_WORDS[COMP_CWORD]}
8- local comp_line=" ${COMP_WORDS[* ]: 1} "
8+ local comp_line=" ${COMP_WORDS[@ ]: 1} "
99
1010 case " $comp_line " in
1111 ' 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:
7070# Modifying it manually is not recommended
7171_cli_completions() {
7272 local cur=${COMP_WORDS[COMP_CWORD]}
73- local comp_line="${COMP_WORDS[* ]:1}"
73+ local comp_line="${COMP_WORDS[@ ]:1}"
7474
7575 case "$comp_line" in
7676 'completions'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
Original file line number Diff line number Diff line change 1010 echo $'# Modifying it manually is not recommended'
1111 echo $'_download_completions() {'
1212 echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
13- echo $' local comp_line="${COMP_WORDS[* ]:1}"'
13+ echo $' local comp_line="${COMP_WORDS[@ ]:1}"'
1414 echo $''
1515 echo $' case "$comp_line" in'
1616 echo $' \'\'*) COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur")) ;;'
Original file line number Diff line number Diff line change 88 # Modifying it manually is not recommended
99 _download_completions() {
1010 local cur=${COMP_WORDS[COMP_CWORD]}
11- local comp_line="${COMP_WORDS[* ]:1}"
11+ local comp_line="${COMP_WORDS[@ ]:1}"
1212
1313 case "$comp_line" in
1414 ''*) COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur")) ;;
You can’t perform that action at this time.
0 commit comments