Documentation
¶
Overview ¶
Package startup parses jira's global flags and first subcommand out of the raw argv before cobra runs. The root alias-expansion preflight needs the requested config/profile and the first command token before the command tree is built, so this logic operates on []string directly — no cobra.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SplitFirstCommandArg ¶
SplitFirstCommandArg returns the argv prefix preceding the first non-flag token, that token (the command name), and the remaining args. ok is false when no command token is present.
Types ¶
type Globals ¶
Globals holds the root persistent-flag values recovered from raw argv during the pre-cobra preflight: the requested config path and profile.
func GlobalsFromArgs ¶
GlobalsFromArgs scans argv for the --config/--profile (and -c/-P) global flags and returns their values, ignoring everything else.