f64f7fa04e
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>
8 lines
384 B
Go
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
|