mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-20 21:20:07 +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
|
||||
|
||||
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
|
||||
|
|
|
|||
3
main.go
3
main.go
|
|
@ -36,7 +36,8 @@ func main() {
|
|||
continue
|
||||
}
|
||||
if strings.Contains(txt, "NOTES") ||
|
||||
strings.Contains(txt, "AVAILABLE") {
|
||||
strings.Contains(txt, "AVAILABLE") ||
|
||||
strings.Contains(txt, "BACKGROUND") {
|
||||
break
|
||||
}
|
||||
if strings.Contains(txt, " ") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue