Versions in this module Expand all Collapse all v1 v1.0.0 Aug 25, 2026 Changes in this version + func Completion(root Command, shell string) (string, error) + type Action uint8 + const ActionHelp + const ActionRun + const ActionVersion + type Command struct + Aliases []string + Children []Command + ID int + Name string + Options []Option + Summary string + Version string + type FailureKind uint8 + const FailureMissingValue + const FailureUnknownCommand + const FailureUnknownOption + const FailureUsage + type Option struct + Boolean bool + Key int + Name string + Persistent bool + Short rune + type ParseError struct + Kind FailureKind + func (err *ParseError) Error() string + type Result struct + Action Action + Arguments []string + CommandID int + Options map[int][]string + func Parse(ctx context.Context, root Command, argv []string) (Result, error) + type UnsupportedShellError struct + Shell string + func (err *UnsupportedShellError) Error() string