File tree Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Expand file tree Collapse file tree 1 file changed +19
-11
lines changed Original file line number Diff line number Diff line change 77# - https://google.github.io/styleguide/shell.xml
88#
99
10+ show_help () {
11+ printf " USAGE:\n\t%s\n" " talos-bootstrap ACTION [OPTIONS]"
12+ printf " \nACTIONS:\n"
13+ printf " \t%s\t\t%s\n" " help" " Show this help message."
14+ printf " \t%s\t\t%s\n" " install" " Setup a node for a new or existing cluster."
15+ printf " \t%s\t\t%s\n" " upgrade" " Upgrade a node in an existing cluster."
16+ printf " \t%s\t\t%s\n" " reset" " Reset and remove a node from an existing cluster."
17+ printf " \t%s\t\t%s\n" " reboot" " Reboot a node."
18+ printf " \t%s\t%s\n" " shutdown" " Shutdown a node."
19+ printf " \t%s\t%s\n" " dashboard" " Open dashboard for a node."
20+ printf " \nOPTIONS:\n"
21+ printf " \t%s <%s>\t%s\n" " -n, --node" " address" " Node address"
22+ }
23+
1024node=
1125OP=
1226while [ $# -gt 0 ]; do
1327 key=" $1 "
1428 case $key in
29+ -h|--help)
30+ show_help
31+ exit 0
32+ ;;
1533 -n | --node)
1634 node=" $2 "
1735 shift
@@ -41,17 +59,7 @@ case "$OP" in
4159 OPTS=" --talosconfig=talosconfig"
4260 ;;
4361 * )
44- printf " USAGE:\n\t%s\n" " talos-bootstrap ACTION [OPTIONS]"
45- printf " \nACTIONS:\n"
46- printf " \t%s\t\t%s\n" " help" " Show this help message."
47- printf " \t%s\t\t%s\n" " install" " Setup a node for a new or existing cluster."
48- printf " \t%s\t\t%s\n" " upgrade" " Upgrade a node in an existing cluster."
49- printf " \t%s\t\t%s\n" " reset" " Reset and remove a node from an existing cluster."
50- printf " \t%s\t\t%s\n" " reboot" " Reboot a node."
51- printf " \t%s\t%s\n" " shutdown" " Shutdown a node."
52- printf " \t%s\t%s\n" " dashboard" " Open dashboard for a node."
53- printf " \nOPTIONS:\n"
54- printf " \t%s <%s>\t%s\n" " -n, --node" " address" " Node address"
62+ show_help
5563 exit 1
5664 ;;
5765esac
You can’t perform that action at this time.
0 commit comments