unify ocis subcommands

This commit is contained in:
Willy Kloucek
2022-05-16 07:59:18 +02:00
parent 0e7de0faf3
commit 44c909b31d
34 changed files with 88 additions and 44 deletions
+3 -3
View File
@@ -17,11 +17,11 @@ func Server(cfg *config.Config) *cli.Command {
Usage: "start a fullstack server (runtime and all extensions in supervised mode)",
Category: "fullstack",
Before: func(c *cli.Context) error {
err := parser.ParseConfig(cfg)
if err != nil {
if err := parser.ParseConfig(cfg); err != nil {
fmt.Printf("%v", err)
return err
}
return err
return nil
},
Action: func(c *cli.Context) error {
r := runtime.New(cfg)