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>
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user