fix: use c.Run() void — handles os.Exit internally. 114 lines.

Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
Snider 2026-03-24 21:36:19 +00:00
parent a31cea36a6
commit ae04bfd389

View file

@ -109,12 +109,6 @@ func main() {
registerWorkspaceCommands(c)
// registerFlowCommands(c) — on feat/flow-system branch
// Run: ServiceStartup → Cli → ServiceShutdown
r = c.Run()
if !r.OK {
if err, ok := r.Value.(error); ok {
core.Error(err.Error())
}
os.Exit(1)
}
// Run: ServiceStartup → Cli → ServiceShutdown → os.Exit if error
c.Run()
}