fix ocis config parsing for subcommands
This commit is contained in:
@@ -16,12 +16,13 @@ func GraphCommand(cfg *config.Config) *cli.Command {
|
||||
Name: cfg.Graph.Service.Name,
|
||||
Usage: subcommandDescription(cfg.Graph.Service.Name),
|
||||
Category: "extensions",
|
||||
Before: func(ctx *cli.Context) error {
|
||||
err := parser.ParseConfig(cfg)
|
||||
if err != nil {
|
||||
Before: func(c *cli.Context) error {
|
||||
if err := parser.ParseConfig(cfg); err != nil {
|
||||
fmt.Printf("%v", err)
|
||||
return err
|
||||
}
|
||||
return err
|
||||
cfg.Graph.Commons = cfg.Commons
|
||||
return nil
|
||||
},
|
||||
Subcommands: command.GetCommands(cfg.Graph),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user