Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New builds a Kong parser with the standard Braidplane command metadata, writers, and exit handling used by command entrypoints.
func RecoverExit ¶
RecoverExit converts Kong's configured exit panic into the caller's error contract while preserving unrelated panics.
Types ¶
type ParseResult ¶
ParseResult captures a parsed Kong target plus any Kong-managed exit.
func Parse ¶
func Parse[T any]( args []string, cli T, name string, description string, stdout io.Writer, stderr io.Writer, exitError func(code int) error, ) (result ParseResult[T], err error)
Parse builds the standard parser, parses args into cli, and reports help or other Kong-managed exits without terminating the process.
Click to show internal directories.
Click to hide internal directories.