Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommandContext ¶
CommandContext holds cross-cutting configuration shared by all agent subcommands. It mirrors the pattern used in forge (see hack/cmd/forge/forge/cmd/common.go) but carries only the fields relevant to the agent: logging configuration.
Persistent flags are bound directly to this struct's exported fields in Run(), and Setup() is called inside each subcommand's RunE — after cobra has finished parsing — to initialise the Logger.
func (*CommandContext) Setup ¶
func (c *CommandContext) Setup()
Setup initialises the Logger from the current flag values.
Click to show internal directories.
Click to hide internal directories.