1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-15 01:15:34 +00:00

do some more

This commit is contained in:
Jason Hall 2022-02-28 21:05:25 -05:00
parent 77d4eba199
commit aab53307a8
2 changed files with 4 additions and 4 deletions

View file

@ -6,14 +6,13 @@ path=$(pwd)/gcloud/$(printf "%s/" "$@")
mkdir -p $path
if [[ $# -eq 0 ]] ; then
gcloud version > version
gcloud version > $(pwd)/gcloud/version
gcloud help > $(pwd)/gcloud/help
fi
groups=$(gcloud help $@ | go run ./ -print=groups)
commands=$(gcloud help $@ | go run ./ -print=commands)
gcloud help > help
for grp in $groups; do
mkdir -p $path/$grp
gcloud help $@ $grp > $path/$grp/help