Help us shape the future of Go! Take the 2026 Go Developer Survey

flags

package
v1.233.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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

func HasAIFlagInternal(args []string) bool

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

func HasHelpFlagInternal(args []string) bool

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

func ParseSkillFlagInternal(args []string) []string

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.

func SplitCSV

func SplitCSV(value string) []string

SplitCSV splits a comma-separated string into trimmed, non-empty values.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL