Skip to content

Commit 3964452

Browse files
committed
- Upgrade to completely 0.4.3
1 parent f9768b4 commit 3964452

File tree

9 files changed

+46
-46
lines changed

9 files changed

+46
-46
lines changed

bashly.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
1717
s.license = 'MIT'
1818
s.required_ruby_version = ">= 2.7.0"
1919

20-
s.add_runtime_dependency 'completely', '~> 0.4.2'
20+
s.add_runtime_dependency 'completely', '~> 0.4.3'
2121
s.add_runtime_dependency 'gtx', '~> 0.1.0'
2222

2323
s.add_runtime_dependency 'colsole', '~> 0.7'

examples/completions/src/lib/send_completions.sh

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,51 @@ send_completions() {
1212
echo $''
1313
echo $' case "$compline" in'
1414
echo $' \'download\'*\'--handler\')'
15-
echo $' COMPREPLY=($(compgen -W "curl wget" -- "$cur"))'
15+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "curl wget" -- "$cur" )'
1616
echo $' ;;'
1717
echo $''
1818
echo $' \'upload\'*\'--user\')'
19-
echo $' COMPREPLY=($(compgen -A user -- "$cur"))'
19+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )'
2020
echo $' ;;'
2121
echo $''
2222
echo $' \'completions\'*)'
23-
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
23+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help -h" -- "$cur" )'
2424
echo $' ;;'
2525
echo $''
2626
echo $' \'d\'*\'--handler\')'
27-
echo $' COMPREPLY=($(compgen -W "curl wget" -- "$cur"))'
27+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "curl wget" -- "$cur" )'
2828
echo $' ;;'
2929
echo $''
3030
echo $' \'upload\'*\'-u\')'
31-
echo $' COMPREPLY=($(compgen -A user -- "$cur"))'
31+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )'
3232
echo $' ;;'
3333
echo $''
3434
echo $' \'download\'*)'
35-
echo $' COMPREPLY=($(compgen -A file -W "--force --handler --help -f -h" -- "$cur"))'
35+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -W "--force --handler --help -f -h" -- "$cur" )'
3636
echo $' ;;'
3737
echo $''
3838
echo $' \'u\'*\'--user\')'
39-
echo $' COMPREPLY=($(compgen -A user -- "$cur"))'
39+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )'
4040
echo $' ;;'
4141
echo $''
4242
echo $' \'upload\'*)'
43-
echo $' COMPREPLY=($(compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur"))'
43+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur" )'
4444
echo $' ;;'
4545
echo $''
4646
echo $' \'u\'*\'-u\')'
47-
echo $' COMPREPLY=($(compgen -A user -- "$cur"))'
47+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )'
4848
echo $' ;;'
4949
echo $''
5050
echo $' \'d\'*)'
51-
echo $' COMPREPLY=($(compgen -A file -W "--force --handler --help -f -h" -- "$cur"))'
51+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -W "--force --handler --help -f -h" -- "$cur" )'
5252
echo $' ;;'
5353
echo $''
5454
echo $' \'u\'*)'
55-
echo $' COMPREPLY=($(compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur"))'
55+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur" )'
5656
echo $' ;;'
5757
echo $''
5858
echo $' *)'
59-
echo $' COMPREPLY=($(compgen -W "--help --version -h -v completions d download u upload" -- "$cur"))'
59+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --version -h -v completions d download u upload" -- "$cur" )'
6060
echo $' ;;'
6161
echo $''
6262
echo $' esac'

spec/approvals/cli/add/comp-function-file

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ send_completions() {
1212
echo $''
1313
echo $' case "$compline" in'
1414
echo $' \'download\'*)'
15-
echo $' COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur"))'
15+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--force --help -f -h" -- "$cur" )'
1616
echo $' ;;'
1717
echo $''
1818
echo $' \'upload\'*)'
19-
echo $' COMPREPLY=($(compgen -W "--help --password --user -h -p -u" -- "$cur"))'
19+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --password --user -h -p -u" -- "$cur" )'
2020
echo $' ;;'
2121
echo $''
2222
echo $' \'d\'*)'
23-
echo $' COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur"))'
23+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--force --help -f -h" -- "$cur" )'
2424
echo $' ;;'
2525
echo $''
2626
echo $' \'u\'*)'
27-
echo $' COMPREPLY=($(compgen -W "--help --password --user -h -p -u" -- "$cur"))'
27+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --password --user -h -p -u" -- "$cur" )'
2828
echo $' ;;'
2929
echo $''
3030
echo $' *)'
31-
echo $' COMPREPLY=($(compgen -W "--help --version -h -v d download u upload" -- "$cur"))'
31+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --version -h -v d download u upload" -- "$cur" )'
3232
echo $' ;;'
3333
echo $''
3434
echo $' esac'

spec/approvals/cli/add/comp-script-file

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ _cli_completions() {
1010

1111
case "$compline" in
1212
'download'*)
13-
COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur"))
13+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--force --help -f -h" -- "$cur" )
1414
;;
1515

1616
'upload'*)
17-
COMPREPLY=($(compgen -W "--help --password --user -h -p -u" -- "$cur"))
17+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --password --user -h -p -u" -- "$cur" )
1818
;;
1919

2020
'd'*)
21-
COMPREPLY=($(compgen -W "--force --help -f -h" -- "$cur"))
21+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--force --help -f -h" -- "$cur" )
2222
;;
2323

2424
'u'*)
25-
COMPREPLY=($(compgen -W "--help --password --user -h -p -u" -- "$cur"))
25+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --password --user -h -p -u" -- "$cur" )
2626
;;
2727

2828
*)
29-
COMPREPLY=($(compgen -W "--help --version -h -v d download u upload" -- "$cur"))
29+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --version -h -v d download u upload" -- "$cur" )
3030
;;
3131

3232
esac

spec/approvals/completions/function

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ custom_name() {
1111
echo $''
1212
echo $' case "$compline" in'
1313
echo $' *)'
14-
echo $' COMPREPLY=($(compgen -A file -W "--force --help --verbose --version -h -v" -- "$cur"))'
14+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -W "--force --help --verbose --version -h -v" -- "$cur" )'
1515
echo $' ;;'
1616
echo $''
1717
echo $' esac'

spec/approvals/completions/script

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,35 @@ _say_completions() {
1010

1111
case "$compline" in
1212
'goodbye universe'*'--color')
13-
COMPREPLY=($(compgen -W "green red" -- "$cur"))
13+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "green red" -- "$cur" )
1414
;;
1515

1616
'goodbye universe'*'--path')
17-
COMPREPLY=($(compgen -A file -- "$cur"))
17+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -- "$cur" )
1818
;;
1919

2020
'goodbye universe'*'-c')
21-
COMPREPLY=($(compgen -W "green red" -- "$cur"))
21+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "green red" -- "$cur" )
2222
;;
2323

2424
'goodbye universe'*)
25-
COMPREPLY=($(compgen -W "$(git branch) --color --help --path --verbose -c -h -v" -- "$cur"))
25+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "$(git branch) --color --help --path --verbose -c -h -v" -- "$cur" )
2626
;;
2727

2828
'hello world'*)
29-
COMPREPLY=($(compgen -A directory -A user -W "--force --help --verbose -h" -- "$cur"))
29+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -A user -W "--force --help --verbose -h" -- "$cur" )
3030
;;
3131

3232
'goodbye'*)
33-
COMPREPLY=($(compgen -W "--help -h universe" -- "$cur"))
33+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help -h universe" -- "$cur" )
3434
;;
3535

3636
'hello'*)
37-
COMPREPLY=($(compgen -W "--help -h world" -- "$cur"))
37+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help -h world" -- "$cur" )
3838
;;
3939

4040
*)
41-
COMPREPLY=($(compgen -W "--help --version -h -v goodbye hello" -- "$cur"))
41+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --version -h -v goodbye hello" -- "$cur" )
4242
;;
4343

4444
esac

spec/approvals/examples/completions

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,51 +75,51 @@ _cli_completions() {
7575

7676
case "$compline" in
7777
'download'*'--handler')
78-
COMPREPLY=($(compgen -W "curl wget" -- "$cur"))
78+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "curl wget" -- "$cur" )
7979
;;
8080

8181
'upload'*'--user')
82-
COMPREPLY=($(compgen -A user -- "$cur"))
82+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
8383
;;
8484

8585
'completions'*)
86-
COMPREPLY=($(compgen -W "--help -h" -- "$cur"))
86+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help -h" -- "$cur" )
8787
;;
8888

8989
'd'*'--handler')
90-
COMPREPLY=($(compgen -W "curl wget" -- "$cur"))
90+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "curl wget" -- "$cur" )
9191
;;
9292

9393
'upload'*'-u')
94-
COMPREPLY=($(compgen -A user -- "$cur"))
94+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
9595
;;
9696

9797
'download'*)
98-
COMPREPLY=($(compgen -A file -W "--force --handler --help -f -h" -- "$cur"))
98+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -W "--force --handler --help -f -h" -- "$cur" )
9999
;;
100100

101101
'u'*'--user')
102-
COMPREPLY=($(compgen -A user -- "$cur"))
102+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
103103
;;
104104

105105
'upload'*)
106-
COMPREPLY=($(compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur"))
106+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur" )
107107
;;
108108

109109
'u'*'-u')
110-
COMPREPLY=($(compgen -A user -- "$cur"))
110+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A user -- "$cur" )
111111
;;
112112

113113
'd'*)
114-
COMPREPLY=($(compgen -A file -W "--force --handler --help -f -h" -- "$cur"))
114+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A file -W "--force --handler --help -f -h" -- "$cur" )
115115
;;
116116

117117
'u'*)
118-
COMPREPLY=($(compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur"))
118+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -A directory -A user -W "--help --password --user -h -p -u CHANGELOG.md README.md" -- "$cur" )
119119
;;
120120

121121
*)
122-
COMPREPLY=($(compgen -W "--help --version -h -v completions d download u upload" -- "$cur"))
122+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--help --version -h -v completions d download u upload" -- "$cur" )
123123
;;
124124

125125
esac

spec/approvals/libraries/completions_function/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
echo $''
1616
echo $' case "$compline" in'
1717
echo $' *)'
18-
echo $' COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur"))'
18+
echo $' while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--force --help --version -f -h -v" -- "$cur" )'
1919
echo $' ;;'
2020
echo $''
2121
echo $' esac'

spec/approvals/libraries/completions_script/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
case "$compline" in
1515
*)
16-
COMPREPLY=($(compgen -W "--force --help --version -f -h -v" -- "$cur"))
16+
while read; do COMPREPLY+=( "$REPLY" ); done < <( compgen -W "--force --help --version -f -h -v" -- "$cur" )
1717
;;
1818

1919
esac

0 commit comments

Comments
 (0)