Replace the RegisterCommands/attachRegisteredCommands side-channel with WithCommands(), which wraps command registration functions as framework services. Commands now participate in the Core lifecycle via OnStartup, receiving the root cobra.Command through Core.App. Main() accepts variadic framework.Option so binaries pass their commands explicitly — no init(), no blank imports, no global state. Co-Authored-By: Virgil <virgil@lethean.io> |
||
|---|---|---|
| .. | ||
| cmd_commands.go | ||
| cmd_format.go | ||
| cmd_fuzz.go | ||
| cmd_go.go | ||
| cmd_gotest.go | ||
| cmd_qa.go | ||
| cmd_tools.go | ||
| coverage_test.go | ||