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 ¶
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 ¶
EnsurePersistentStringFlag adds a persistent string flag unless it exists.
func LookupFlagBool ¶
LookupFlagBool resolves a local or inherited bool flag value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.