1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-18 06:47:12 +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 mkdir -p $path
if [[ $# -eq 0 ]] ; then if [[ $# -eq 0 ]] ; then
gcloud version > version gcloud version > $(pwd)/gcloud/version
gcloud help > $(pwd)/gcloud/help
fi fi
groups=$(gcloud help $@ | go run ./ -print=groups) groups=$(gcloud help $@ | go run ./ -print=groups)
commands=$(gcloud help $@ | go run ./ -print=commands) commands=$(gcloud help $@ | go run ./ -print=commands)
gcloud help > help
for grp in $groups; do for grp in $groups; do
mkdir -p $path/$grp mkdir -p $path/$grp
gcloud help $@ $grp > $path/$grp/help gcloud help $@ $grp > $path/$grp/help

View file

@ -36,7 +36,8 @@ func main() {
continue continue
} }
if strings.Contains(txt, "NOTES") || if strings.Contains(txt, "NOTES") ||
strings.Contains(txt, "AVAILABLE") { strings.Contains(txt, "AVAILABLE") ||
strings.Contains(txt, "BACKGROUND") {
break break
} }
if strings.Contains(txt, " ") { if strings.Contains(txt, " ") {