cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagFormat selects the output mode (json or human).
	FlagFormat = "format"
	// FlagDryRun emits the envelope without performing side effects.
	FlagDryRun = "dry-run"
	// FlagIdempotencyKey carries an opaque key that suppresses duplicate-create
	// retries.
	FlagIdempotencyKey = "idempotency-key"
	// FlagYes explicitly approves a confirmation-gated operation.
	FlagYes = "yes"
)

Persistent agent-safety/output flag names installed on every ax-go root command. They live here, in the package both ax.Execute and the MCP dispatcher already depend on, so the engine's flag installer and the MCP server resolve the same flags from a single source of truth.

Variables

This section is empty.

Functions

func EnsurePersistentBoolFlag

func EnsurePersistentBoolFlag(root *cobra.Command, name string, value bool, usage string)

EnsurePersistentBoolFlag adds a persistent bool flag unless a persistent flag with the same name already exists. A root-local collision is preserved: Cobra lets the local flag serve the root while children inherit this AX flag.

func EnsurePersistentStringFlag

func EnsurePersistentStringFlag(root *cobra.Command, name, value, usage string)

EnsurePersistentStringFlag adds a persistent string flag unless it exists.

func LookupFlagBool

func LookupFlagBool(cmd *cobra.Command, name string) bool

LookupFlagBool resolves a local or inherited bool flag value.

func LookupFlagString

func LookupFlagString(cmd *cobra.Command, name string) string

LookupFlagString resolves a local or inherited flag value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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