Skip to content

Commit b5aaeb3

Browse files
committed
- Regenerate with bashly 0.8.2
1 parent eedffde commit b5aaeb3

File tree

5 files changed

+422
-82
lines changed

5 files changed

+422
-82
lines changed

op.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
watch: filewatcher --immediate "**/*.{sh,yml}" "bashly generate"
2-
#? watch files and regenerate script on change
3-
41
generate: bashly generate --upgrade
52
#? regenerate script
63

4+
watch: op generate --watch
5+
#? watch files and regenerate script on change
6+
77
test: docker compose run --rm test
88
#? run tests in a container
99

rush

Lines changed: 140 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# This script was generated by bashly 0.8.0 (https://bashly.dannyb.co)
2+
# This script was generated by bashly 0.8.2 (https://bashly.dannyb.co)
33
# Modifying it manually is not recommended
44

55
# :wrapper.bash3_bouncer
@@ -36,14 +36,17 @@ rush_usage() {
3636
printf "Repository Commands:\n"
3737
echo " add Register a local repository"
3838
echo " remove Unregister a local repository"
39-
printf "\nGit Commands:\n"
39+
echo
40+
printf "Git Commands:\n"
4041
echo " clone Clone a GitHub package repository"
4142
echo " pull Git pull one or all repositories"
4243
echo " push Git push one or all repositories"
43-
printf "\nConfig Commands:\n"
44+
echo
45+
printf "Config Commands:\n"
4446
echo " config Show or edit the configuration file"
4547
echo " default Set a default repository"
46-
printf "\nPackage Commands:\n"
48+
echo
49+
printf "Package Commands:\n"
4750
echo " get Install a package (default)"
4851
echo " undo Uninstall a package"
4952
echo " snatch Install a package from a remote repo"
@@ -53,7 +56,8 @@ rush_usage() {
5356
echo " search Search in package names and info files"
5457
echo " edit Edit package files"
5558
echo " show Show package files"
56-
printf "\nInternal Commands:\n"
59+
echo
60+
printf "Internal Commands:\n"
5761
echo " completions Generate bash completions"
5862
echo
5963

@@ -1069,38 +1073,146 @@ say() {
10691073

10701074
# src/lib/send_completions.sh
10711075
send_completions() {
1072-
echo $'#!/usr/bin/env bash'
1076+
echo $'# rush completion -*- shell-script -*-'
10731077
echo $''
10741078
echo $'# This bash completions script was generated by'
10751079
echo $'# completely (https://github.com/dannyben/completely)'
10761080
echo $'# Modifying it manually is not recommended'
1081+
echo $''
10771082
echo $'_rush_completions() {'
10781083
echo $' local cur=${COMP_WORDS[COMP_CWORD]}'
1079-
echo $' local comp_line="${COMP_WORDS[@]:1}"'
1084+
echo $' local compline="${COMP_WORDS[@]:1:$COMP_CWORD-1}"'
10801085
echo $''
1081-
echo $' case "$comp_line" in'
1082-
echo $' \'completions\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1083-
echo $' \'default\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1084-
echo $' \'remove\'*) COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur")) ;;'
1085-
echo $' \'config\'*) COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur")) ;;'
1086-
echo $' \'snatch\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1087-
echo $' \'search\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1088-
echo $' \'clone\'*) COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur")) ;;'
1089-
echo $' \'pull\'*) COMPREPLY=($(compgen -W "--help -h" -- "$cur")) ;;'
1090-
echo $' \'push\'*) COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur")) ;;'
1091-
echo $' \'undo\'*) COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur")) ;;'
1092-
echo $' \'copy\'*) COMPREPLY=($(compgen -W "$(rush list -s -a) --force --help -f -h" -- "$cur")) ;;'
1093-
echo $' \'info\'*) COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur")) ;;'
1094-
echo $' \'list\'*) COMPREPLY=($(compgen -W "--all --help --simple -a -h -s" -- "$cur")) ;;'
1095-
echo $' \'edit\'*) COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur")) ;;'
1096-
echo $' \'show\'*) COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur")) ;;'
1097-
echo $' \'add\'*) COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur")) ;;'
1098-
echo $' \'get\'*) COMPREPLY=($(compgen -W "$(rush list -s -a) --clone --help -c -h" -- "$cur")) ;;'
1099-
echo $' \'\'*) COMPREPLY=($(compgen -W "$(rush list -s -a) --help --version -h -v add clone completions config copy default edit get info list pull push remove search show snatch undo" -- "$cur")) ;;'
1100-
echo $' esac'
1101-
echo $'}'
1086+
echo $' case "$compline" in'
1087+
echo $' \'completions\'*)'
1088+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1089+
echo $' ;;'
1090+
echo $''
1091+
echo $' \'download\'*)'
1092+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1093+
echo $' ;;'
1094+
echo $''
1095+
echo $' \'default\'*)'
1096+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1097+
echo $' ;;'
1098+
echo $''
1099+
echo $' \'remove\'*)'
1100+
echo $' COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur"))'
1101+
echo $' ;;'
1102+
echo $''
1103+
echo $' \'update\'*)'
1104+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1105+
echo $' ;;'
1106+
echo $''
1107+
echo $' \'upload\'*)'
1108+
echo $' COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur"))'
1109+
echo $' ;;'
1110+
echo $''
1111+
echo $' \'config\'*)'
1112+
echo $' COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur"))'
1113+
echo $' ;;'
1114+
echo $''
1115+
echo $' \'snatch\'*)'
1116+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1117+
echo $' ;;'
1118+
echo $''
1119+
echo $' \'search\'*)'
1120+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1121+
echo $' ;;'
1122+
echo $''
1123+
echo $' \'clone\'*)'
1124+
echo $' COMPREPLY=($(compgen -A directory -W "--default --help --ignore --name --shallow --ssh -d -h -i -n -s -w" -- "$cur"))'
1125+
echo $' ;;'
1126+
echo $''
1127+
echo $' \'pull\'*)'
1128+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1129+
echo $' ;;'
1130+
echo $''
1131+
echo $' \'push\'*)'
1132+
echo $' COMPREPLY=($(compgen -W "--all --help --message -a -h -m" -- "$cur"))'
1133+
echo $' ;;'
1134+
echo $''
1135+
echo $' \'undo\'*)'
1136+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur"))'
1137+
echo $' ;;'
1138+
echo $''
1139+
echo $' \'copy\'*)'
1140+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --force --help -f -h" -- "$cur"))'
1141+
echo $' ;;'
11021142
echo $''
1143+
echo $' \'info\'*)'
1144+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur"))'
1145+
echo $' ;;'
1146+
echo $''
1147+
echo $' \'list\'*)'
1148+
echo $' COMPREPLY=($(compgen -W "--all --help --simple -a -h -s" -- "$cur"))'
1149+
echo $' ;;'
1150+
echo $''
1151+
echo $' \'edit\'*)'
1152+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur"))'
1153+
echo $' ;;'
1154+
echo $''
1155+
echo $' \'show\'*)'
1156+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur"))'
1157+
echo $' ;;'
1158+
echo $''
1159+
echo $' \'add\'*)'
1160+
echo $' COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur"))'
1161+
echo $' ;;'
1162+
echo $''
1163+
echo $' \'get\'*)'
1164+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --clone --help -c -h" -- "$cur"))'
1165+
echo $' ;;'
1166+
echo $''
1167+
echo $' \'a\'*)'
1168+
echo $' COMPREPLY=($(compgen -A directory -W "--help -h" -- "$cur"))'
1169+
echo $' ;;'
1170+
echo $''
1171+
echo $' \'r\'*)'
1172+
echo $' COMPREPLY=($(compgen -W "--help --purge -h -p" -- "$cur"))'
1173+
echo $' ;;'
1174+
echo $''
1175+
echo $' \'p\'*)'
1176+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1177+
echo $' ;;'
1178+
echo $''
1179+
echo $' \'c\'*)'
1180+
echo $' COMPREPLY=($(compgen -W "--edit --help -e -h" -- "$cur"))'
1181+
echo $' ;;'
1182+
echo $''
1183+
echo $' \'g\'*)'
1184+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --clone --help -c -h" -- "$cur"))'
1185+
echo $' ;;'
1186+
echo $''
1187+
echo $' \'u\'*)'
1188+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur"))'
1189+
echo $' ;;'
1190+
echo $''
1191+
echo $' \'i\'*)'
1192+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur"))'
1193+
echo $' ;;'
1194+
echo $''
1195+
echo $' \'l\'*)'
1196+
echo $' COMPREPLY=($(compgen -W "--all --help --simple -a -h -s" -- "$cur"))'
1197+
echo $' ;;'
1198+
echo $''
1199+
echo $' \'s\'*)'
1200+
echo $' COMPREPLY=($(compgen -W "--help -h" -- "$cur"))'
1201+
echo $' ;;'
1202+
echo $''
1203+
echo $' \'e\'*)'
1204+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help -h" -- "$cur"))'
1205+
echo $' ;;'
1206+
echo $''
1207+
echo $' *)'
1208+
echo $' COMPREPLY=($(compgen -W "$(rush list -s -a) --help --version -h -v a add c clone completions config copy default download e edit g get i info l list p pull push r remove s search show snatch u undo update upload" -- "$cur"))'
1209+
echo $' ;;'
1210+
echo $''
1211+
echo $' esac'
1212+
echo $'} &&'
11031213
echo $'complete -F _rush_completions rush'
1214+
echo $''
1215+
echo $'# ex: filetype=sh'
11041216
}
11051217

11061218
# src/lib/warn.sh

src/bashly.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ environment_variables:
1212
commands:
1313
- name: add
1414
alias: a
15-
completions: [<directory>]
1615
group: Repository
16+
completions: [<directory>]
1717
help: |-
1818
Register a local repository
1919
This command adds the specified path to the configuration file.
@@ -32,6 +32,7 @@ commands:
3232

3333
- name: remove
3434
alias: r
35+
group: Repository
3536
help: |-
3637
Unregister a local repository
3738
This command removes the specified path to the configuration file.
@@ -51,8 +52,8 @@ commands:
5152
- rush remove bobby --purge
5253

5354
- name: clone
54-
completions: [<directory>]
5555
group: Git
56+
completions: [<directory>]
5657
help: |-
5758
Clone a GitHub package repository
5859
This command clones the repository and registers it in the
@@ -103,6 +104,7 @@ commands:
103104

104105
- name: pull
105106
alias: [p, download, update]
107+
group: Git
106108
help: Git pull one or all repositories
107109

108110
args:
@@ -111,6 +113,7 @@ commands:
111113

112114
- name: push
113115
alias: upload
116+
group: Git
114117
help: Git push one or all repositories
115118

116119
args:
@@ -142,6 +145,7 @@ commands:
142145
help: Open the configuration file for editing.
143146

144147
- name: default
148+
group: Config
145149
help: |-
146150
Set a default repository
147151
This command adds (or updates) a repository named 'default' to the
@@ -157,8 +161,8 @@ commands:
157161

158162
- name: get
159163
alias: g
160-
completions: [$(rush list -s -a)]
161164
group: Package
165+
completions: [$(rush list -s -a)]
162166
help: |-
163167
Install a package
164168
This command runs the main script in the package directory.
@@ -192,6 +196,7 @@ commands:
192196

193197
- name: undo
194198
alias: u
199+
group: Package
195200
completions: [$(rush list -s -a)]
196201
help: |-
197202
Uninstall a package
@@ -207,6 +212,7 @@ commands:
207212
- rush undo centos:ruby
208213

209214
- name: snatch
215+
group: Package
210216
help: |-
211217
Install a package from a remote repo
212218
This command is a shortcut to running clone followed by get.
@@ -227,6 +233,7 @@ commands:
227233
- rush snatch james/other-rush-repo python
228234

229235
- name: copy
236+
group: Package
230237
completions: [$(rush list -s -a)]
231238
help: Copy a package between local repositories
232239

@@ -260,6 +267,7 @@ commands:
260267

261268
- name: info
262269
alias: i
270+
group: Package
263271
completions: [$(rush list -s -a)]
264272
help: |-
265273
Show information about a package
@@ -276,6 +284,7 @@ commands:
276284

277285
- name: list
278286
alias: l
287+
group: Package
279288
help: Show packages in one or all repositories
280289

281290
args:
@@ -305,6 +314,7 @@ commands:
305314

306315
- name: search
307316
alias: s
317+
group: Package
308318
help: Search in package names and info files
309319

310320
args:
@@ -314,6 +324,7 @@ commands:
314324

315325
- name: edit
316326
alias: e
327+
group: Package
317328
completions: [$(rush list -s -a)]
318329
help: Edit package files
319330

@@ -328,6 +339,7 @@ commands:
328339
Default: main
329340
330341
- name: show
342+
group: Package
331343
completions: [$(rush list -s -a)]
332344
help: Show package files
333345

0 commit comments

Comments
 (0)