File tree Expand file tree Collapse file tree 9 files changed +17
-41
lines changed
examples/completions/src/lib Expand file tree Collapse file tree 9 files changed +17
-41
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.7'
21- s . add_runtime_dependency 'completely' , '~> 0.4.0 '
21+ s . add_runtime_dependency 'completely' , '~> 0.4.1 '
2222 s . add_runtime_dependency 'mister_bin' , '~> 0.7'
2323 s . add_runtime_dependency 'requires' , '~> 0.2'
2424
Original file line number Diff line number Diff line change @@ -7,11 +7,8 @@ send_completions() {
77 echo $' # Modifying it manually is not recommended'
88 echo $' '
99 echo $' _cli_completions() {'
10- echo $' local cur compline'
11- echo $' _init_completion -s || return'
12- echo $' '
13- echo $' cur=${COMP_WORDS[COMP_CWORD]}'
14- echo $' compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
10+ echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
11+ echo $' local compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
1512 echo $' '
1613 echo $' case "$compline" in'
1714 echo $' \' download\' *\' --handler\' )'
Original file line number Diff line number Diff line change @@ -7,11 +7,8 @@ send_completions() {
77 echo $' # Modifying it manually is not recommended'
88 echo $' '
99 echo $' _cli_completions() {'
10- echo $' local cur compline'
11- echo $' _init_completion -s || return'
12- echo $' '
13- echo $' cur=${COMP_WORDS[COMP_CWORD]}'
14- echo $' compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
10+ echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
11+ echo $' local compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
1512 echo $' '
1613 echo $' case "$compline" in'
1714 echo $' \' download\' *)'
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66
77_cli_completions () {
8- local cur compline
9- _init_completion -s || return
10-
11- cur=${COMP_WORDS[COMP_CWORD]}
12- compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
8+ local cur=${COMP_WORDS[COMP_CWORD]}
9+ local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
1310
1411 case " $compline " in
1512 ' download' * )
Original file line number Diff line number Diff line change @@ -6,11 +6,8 @@ custom_name() {
66 echo $' # Modifying it manually is not recommended'
77 echo $' '
88 echo $' _get_completions() {'
9- echo $' local cur compline'
10- echo $' _init_completion -s || return'
11- echo $' '
12- echo $' cur=${COMP_WORDS[COMP_CWORD]}'
13- echo $' compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
9+ echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
10+ echo $' local compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
1411 echo $' '
1512 echo $' case "$compline" in'
1613 echo $' *)'
Original file line number Diff line number Diff line change 55# Modifying it manually is not recommended
66
77_say_completions () {
8- local cur compline
9- _init_completion -s || return
10-
11- cur=${COMP_WORDS[COMP_CWORD]}
12- compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
8+ local cur=${COMP_WORDS[COMP_CWORD]}
9+ local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
1310
1411 case " $compline " in
1512 ' goodbye universe' * ' --color' )
Original file line number Diff line number Diff line change @@ -70,11 +70,8 @@ Options:
7070# Modifying it manually is not recommended
7171
7272_cli_completions () {
73- local cur compline
74- _init_completion -s || return
75-
76- cur=${COMP_WORDS[COMP_CWORD]}
77- compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
73+ local cur=${COMP_WORDS[COMP_CWORD]}
74+ local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
7875
7976 case " $compline " in
8077 ' download' * ' --handler' )
Original file line number Diff line number Diff line change 1010 echo $'# Modifying it manually is not recommended'
1111 echo $''
1212 echo $'_download_completions() {'
13- echo $' local cur compline'
14- echo $' _init_completion -s || return'
15- echo $''
16- echo $' cur=${COMP_WORDS[COMP_CWORD]}'
17- echo $' compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
13+ echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
14+ echo $' local compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
1815 echo $''
1916 echo $' case "$compline" in'
2017 echo $' *)'
Original file line number Diff line number Diff line change 88 # Modifying it manually is not recommended
99
1010 _download_completions () {
11- local cur compline
12- _init_completion -s || return
13-
14- cur=${COMP_WORDS[COMP_CWORD]}
15- compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
11+ local cur=${COMP_WORDS[COMP_CWORD]}
12+ local compline=" ${COMP_WORDS[@]: 1: $COMP_CWORD -1} "
1613
1714 case " $compline " in
1815 * )
You can’t perform that action at this time.
0 commit comments