Skip to content

Commit ccc5b99

Browse files
committed
- Regenerate with bashly 0.6.5
1 parent 2d83c81 commit ccc5b99

File tree

3 files changed

+60
-57
lines changed

3 files changed

+60
-57
lines changed

rush

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,26 +1026,27 @@ send_completions() {
10261026
echo $'# Modifying it manually is not recommended'
10271027
echo $'_rush_completions() {'
10281028
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
1029+
echo $' local comp_line="${COMP_WORDS[*]:1}"'
10291030
echo $''
1030-
echo $' case "$COMP_LINE" in'
1031-
echo $' \'rush completions\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1032-
echo $' \'rush default\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1033-
echo $' \'rush remove\'*) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;'
1034-
echo $' \'rush config\'*) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;'
1035-
echo $' \'rush snatch\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1036-
echo $' \'rush search\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1037-
echo $' \'rush clone\'*) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;'
1038-
echo $' \'rush pull\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1039-
echo $' \'rush push\'*) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;'
1040-
echo $' \'rush undo\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1041-
echo $' \'rush copy\'*) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;'
1042-
echo $' \'rush info\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1043-
echo $' \'rush list\'*) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;'
1044-
echo $' \'rush edit\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1045-
echo $' \'rush show\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1046-
echo $' \'rush add\'*) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;'
1047-
echo $' \'rush get\'*) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;'
1048-
echo $' \'rush\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;'
1031+
echo $' case "$comp_line" in'
1032+
echo $' \'completions\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1033+
echo $' \'default\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1034+
echo $' \'remove\'*) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;'
1035+
echo $' \'config\'*) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;'
1036+
echo $' \'snatch\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1037+
echo $' \'search\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1038+
echo $' \'clone\'*) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;'
1039+
echo $' \'pull\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1040+
echo $' \'push\'*) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;'
1041+
echo $' \'undo\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1042+
echo $' \'copy\'*) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;'
1043+
echo $' \'info\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1044+
echo $' \'list\'*) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;'
1045+
echo $' \'edit\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1046+
echo $' \'show\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
1047+
echo $' \'add\'*) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;'
1048+
echo $' \'get\'*) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;'
1049+
echo $' \'\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;'
10491050
echo $' esac'
10501051
echo $'}'
10511052
echo $''

src/lib/send_completions.sh

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,27 @@ send_completions() {
66
echo $'# Modifying it manually is not recommended'
77
echo $'_rush_completions() {'
88
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
9+
echo $' local comp_line="${COMP_WORDS[*]:1}"'
910
echo $''
10-
echo $' case "$COMP_LINE" in'
11-
echo $' \'rush completions\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
12-
echo $' \'rush default\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
13-
echo $' \'rush remove\'*) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;'
14-
echo $' \'rush config\'*) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;'
15-
echo $' \'rush snatch\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
16-
echo $' \'rush search\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
17-
echo $' \'rush clone\'*) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;'
18-
echo $' \'rush pull\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
19-
echo $' \'rush push\'*) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;'
20-
echo $' \'rush undo\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
21-
echo $' \'rush copy\'*) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;'
22-
echo $' \'rush info\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
23-
echo $' \'rush list\'*) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;'
24-
echo $' \'rush edit\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
25-
echo $' \'rush show\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
26-
echo $' \'rush add\'*) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;'
27-
echo $' \'rush get\'*) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;'
28-
echo $' \'rush\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;'
11+
echo $' case "$comp_line" in'
12+
echo $' \'completions\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
13+
echo $' \'default\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
14+
echo $' \'remove\'*) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;'
15+
echo $' \'config\'*) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;'
16+
echo $' \'snatch\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
17+
echo $' \'search\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
18+
echo $' \'clone\'*) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;'
19+
echo $' \'pull\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
20+
echo $' \'push\'*) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;'
21+
echo $' \'undo\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
22+
echo $' \'copy\'*) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;'
23+
echo $' \'info\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
24+
echo $' \'list\'*) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;'
25+
echo $' \'edit\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
26+
echo $' \'show\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;'
27+
echo $' \'add\'*) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;'
28+
echo $' \'get\'*) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;'
29+
echo $' \'\'*) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;'
2930
echo $' esac'
3031
echo $'}'
3132
echo $''

test/approvals/rush_completions

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,27 @@
55
# Modifying it manually is not recommended
66
_rush_completions() {
77
local cur=${COMP_WORDS[COMP_CWORD]}
8+
local comp_line="${COMP_WORDS[*]:1}"
89

9-
case "$COMP_LINE" in
10-
'rush completions'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
11-
'rush default'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
12-
'rush remove'*) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;
13-
'rush config'*) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;
14-
'rush snatch'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
15-
'rush search'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
16-
'rush clone'*) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;
17-
'rush pull'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
18-
'rush push'*) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;
19-
'rush undo'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
20-
'rush copy'*) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;
21-
'rush info'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
22-
'rush list'*) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;
23-
'rush edit'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
24-
'rush show'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
25-
'rush add'*) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;
26-
'rush get'*) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;
27-
'rush'*) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;
10+
case "$comp_line" in
11+
'completions'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
12+
'default'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
13+
'remove'*) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;
14+
'config'*) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;
15+
'snatch'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
16+
'search'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
17+
'clone'*) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;
18+
'pull'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;
19+
'push'*) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;
20+
'undo'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
21+
'copy'*) COMPREPLY=($(compgen -W "$(rush list -s) --force --help -f -h" -- "$cur")) ;;
22+
'info'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
23+
'list'*) COMPREPLY=($(compgen -W "--help --simple -h -s" -- "$cur")) ;;
24+
'edit'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
25+
'show'*) COMPREPLY=($(compgen -W "$(rush list -s) --help -h" -- "$cur")) ;;
26+
'add'*) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;
27+
'get'*) COMPREPLY=($(compgen -W "$(rush list -s) --clone --help -c -h" -- "$cur")) ;;
28+
''*) COMPREPLY=($(compgen -W "$(rush list -s) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;
2829
esac
2930
}
3031

0 commit comments

Comments
 (0)