Documentation
¶
Index ¶
- Constants
- func AgentMode() bool
- func ConfirmOrError(prompt string, dangerouslySkipConfirmation bool) error
- func EncodeJSON(w io.Writer, v any) error
- func FilterFields(v any, fields []string) (any, error)
- func IsTerminal() bool
- func NoColor() bool
- func PrintTable(w io.Writer, header []string, rows [][]string)
- func SetAgentMode(v bool)
- func WriteError(w io.Writer, format Format, e *CLIError)
- type CLIError
- type Format
Constants ¶
View Source
const ( ExitOK = 0 ExitError = 1 ExitUsage = 2 ExitNotFound = 3 ExitConflict = 4 ExitAuth = 5 ExitRate = 6 ExitTimeout = 7 ExitStaleIndex = 8 ExitPartial = 10 )
Variables ¶
This section is empty.
Functions ¶
func AgentMode ¶
func AgentMode() bool
AgentMode reports whether the caller asked for the agent surface.
func ConfirmOrError ¶
func IsTerminal ¶
func IsTerminal() bool
func SetAgentMode ¶
func SetAgentMode(v bool)
SetAgentMode is called from main before any command runs.
Types ¶
Click to show internal directories.
Click to hide internal directories.