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:
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue