Adopt the native CommandKit application boundary
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os"
|
||||
|
||||
"go.maximumdirect.net/commandkit"
|
||||
|
||||
"gitea.maximumdirect.net/eric/narratio/internal/app"
|
||||
)
|
||||
|
||||
func main() {
|
||||
os.Exit(app.Execute(os.Args[1:], os.Stdout, os.Stderr))
|
||||
outcome := app.Execute(context.Background(), os.Args[1:], commandkit.Streams{Out: os.Stdout, Err: os.Stderr})
|
||||
os.Exit(outcome.Status)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user