feat(k8s): add shorthand options for sub-commands in freeleaps-cluster-authenticator help message
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
1cd0c6c792
commit
8598d92c01
@ -23,10 +23,10 @@ help() {
|
||||
echo "Usage: freeleaps-cluster-authenticator <sub-command>"
|
||||
echo ""
|
||||
echo "Sub Commands:"
|
||||
echo " auth Setup kubectl for freeleaps cluster with Mathmast account."
|
||||
echo " clear Clear authentication for freeleaps cluster."
|
||||
echo " doctor Check if all the required tools are installed."
|
||||
echo " help,-h,--help Show this help message."
|
||||
echo " auth,-a,--auth Setup kubectl for freeleaps cluster with Mathmast account."
|
||||
echo " clear,-c,--clear Clear authentication for freeleaps cluster."
|
||||
echo " doctor,-d,--doctor Check if all the required tools are installed."
|
||||
echo " help,-h,--help Show this help message."
|
||||
echo ""
|
||||
echo "Environment Options:"
|
||||
echo " CLUSTER_API_LB_IP: IP address of the cluster API load balancer."
|
||||
@ -278,13 +278,13 @@ main() {
|
||||
subcommand="$1"
|
||||
|
||||
case "${subcommand}" in
|
||||
auth)
|
||||
auth|-a|--auth)
|
||||
auth
|
||||
;;
|
||||
clear)
|
||||
clear|-c|--clear)
|
||||
clear_auth
|
||||
;;
|
||||
doctor)
|
||||
doctor|-d|--doctor)
|
||||
gather_prerequisites
|
||||
;;
|
||||
help|-h|--help)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user