fix: use c.Run() void — handles os.Exit internally. 114 lines.
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
a31cea36a6
commit
ae04bfd389
1 changed files with 2 additions and 8 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue