Files
appcli/doc.go
T
end f64f7fa04e fix: copy-on-wrap commands and typed errors
Clone commands before wrapping Before hooks, export ErrLifecycleNotInContext
and ErrNoDependencies, add Run helper, split command.go and deps.go.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 18:04:07 -07:00

8 lines
384 B
Go

// Package appcli connects [github.com/urfave/cli/v3] commands to
// [gitea.auvem.com/go-toolkit/app.Lifecycle] dependency loading.
//
// Inject the lifecycle into context in main (see [appcli.Run]), wrap commands with
// [appcli.NewCommand] or [appcli.NewRootCommand], and supply [appcli.DepFn] callbacks
// that return modules to initialize before each command runs.
package appcli