Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyCommand = fmt.Errorf("empty command")
Functions ¶
func ErrUnknownCommand ¶
Types ¶
type Context ¶
type Context struct {
App any
context.Context // embedded, so it implements context.Context
DockerClient *client.Client
}
Context is the shared command execution context. It wraps a standard context.Context and provides additional handles like the Docker client.
func WithCancel ¶
func WithCancel(cli *client.Client) (Context, context.CancelFunc)
WithCancel returns a cancellable derived context and a cancel func.
type ErrHelpRequested ¶
ErrHelpRequested is a sentinel returned by ParseInput when the user asked for a command's help (`:cmd --help` / `-h`). It is not a parse failure: the dispatcher recovers it via errors.As and renders the per-command help screen instead of an inline error.
func (ErrHelpRequested) Error ¶
func (ErrHelpRequested) Error() string
Click to show internal directories.
Click to hide internal directories.