Skip to content

Commit

Permalink
added a script for odo - copied from the oc script
Browse files Browse the repository at this point in the history
  • Loading branch information
danfein committed Jan 26, 2022
1 parent 19deee4 commit 9f8e491
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exp1/odo_taxo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# Parse openshift CLI help and pretty print command taxonomy
# @author Alister Lewis-Bowen <bowena@vmware.com>

../cli_taxo.py odo \
--commands-token 'Commands\s\(\S+\):|Commands:' \
--commands-filter '^\s\s((?!#)\S+)\s+[A-Z]' \
--options-token '^Options:' \
--options-filter '^\s+?(-.+?):' \
"$@"

0 comments on commit 9f8e491

Please sign in to comment.