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:
2026-06-29 18:04:07 -07:00
parent 60ecc69620
commit f64f7fa04e
9 changed files with 282 additions and 100 deletions
+10 -1
View File
@@ -3,6 +3,15 @@ module gitea.auvem.com/go-toolkit/appcli
go 1.24.0
require (
gitea.auvem.com/go-toolkit/app v0.0.0-20250603235859-6f9e3731acf9
gitea.auvem.com/go-toolkit/app v0.0.0-1782781086-58e5e33e18da
github.com/stretchr/testify v1.10.0
github.com/urfave/cli/v3 v3.3.3
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
replace gitea.auvem.com/go-toolkit/app => ../app