Documentation
¶
Overview ¶
Package cli wires the installer's cobra commands. It is invoked by cmd/installer/main.go and works identically whether run as `installer ...` standalone or as `cub installer ...` via the cub plugin protocol — the only difference is cosmetic (the plugin sets CUB_PLUGIN=1 in the env, which we surface in `installer doc` output).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InvocationName ¶
func InvocationName() string
InvocationName is the command name to print in user-facing follow-up instructions ("Next: ... upload <dir>"). It returns "cub installer" when the binary was launched via the cub plugin protocol so the operator can copy-paste the suggestion back into their shell; otherwise it returns os.Args[0] verbatim (e.g. "bin/installer", "installer", "/usr/local/bin/installer") so the suggestion matches what they actually typed. Falls back to "installer" if os.Args is empty.
Types ¶
This section is empty.