flags

package
v1.235.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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