mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-18 23:08:48 +00:00
do some more
This commit is contained in:
parent
77d4eba199
commit
aab53307a8
2 changed files with 4 additions and 4 deletions
5
crawl.sh
5
crawl.sh
|
|
@ -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
|
||||||
|
|
|
||||||
3
main.go
3
main.go
|
|
@ -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, " ") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue