Versions in this module Expand all Collapse all v0 v0.2.4 Oct 25, 2026 Changes in this version + const ExitAwaitingHuman + const ExitError + const ExitMaxIterations + const ExitOK + const ExitStopped + const ExitTimeout + const ExitUsage + const Usage + func ExitCodeFor(reason event.DoneReason) int + type App struct + func NewApp(env Environment, commands map[string]Command) *App + func (a *App) Run(ctx context.Context, args []string) int + type Command interface + Run func(ctx context.Context, args []string) int + type Environment interface + Getenv func(key string) string + Stderr func() io.Writer + Stdin func() io.Reader + StdinIsTerminal func() bool + Stdout func() io.Writer