Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasAIFlag ¶
func HasAIFlag() bool
HasAIFlag checks if --ai flag is present in os.Args. This is needed before Cobra parses flags because we set up output capture in Execute() before internal.Execute() runs the command.
func HasAIFlagInternal ¶
HasAIFlagInternal checks if --ai flag is present in the provided args. Uses last-value-wins semantics to match Cobra's behavior for repeated flags. Only falls back to ATMOS_AI environment variable when no CLI flag is present.
func HasHelpFlag ¶
func HasHelpFlag() bool
HasHelpFlag checks if --help or -h is present in os.Args (before the "--" delimiter). Used to short-circuit AI setup when the user is requesting help.
func HasHelpFlagInternal ¶
HasHelpFlagInternal checks if --help, -h, or the "help" subcommand is present in the provided args.
func ParseSkillFlag ¶
func ParseSkillFlag() []string
ParseSkillFlag extracts all --skill flag values from os.Args. This is needed before Cobra parses flags because we validate and load skills in Execute() before internal.Execute() runs the command.
func ParseSkillFlagInternal ¶
ParseSkillFlagInternal extracts all --skill flag values from the provided args. Supports repeated flags (--skill a --skill b) and comma-separated values (--skill a,b). Respects CLI precedence: if --skill is explicitly provided (even as empty), the env var is not consulted. Only falls back to ATMOS_SKILL environment variable when no --skill flag is present.
Types ¶
This section is empty.