Skip to content

Commit

Permalink
updating regex to catch command token
Browse files Browse the repository at this point in the history
  • Loading branch information
danfein committed Jan 21, 2022
1 parent ac2fc33 commit 7223032
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions exp1/tanzu_taxo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# Parse Tanzu CLI help and pretty print command taxonomy
# @author Alister Lewis-Bowen <bowena@vmware.com>

../cli_taxo.py tanzu \
--commands-token 'Admin|(Available Commands:)' \
../cli_taxo.py tanzu --commands-token 'Admin|(Available command groups:)|(Available Commands:)' \
--commands-filter '\s\s\s\s(?!-)(\S[^,\s]+)\s\s|\s\s(?!-)(\S[^,\s]+)\s\s' \
--options-token 'Flags:' \
--options-filter '\s(-\S[^,\s,"]+)\s' \
"$@"
"$@"

0 comments on commit 7223032

Please sign in to comment.