fix configuration validation for extensions' server commands

This commit is contained in:
Willy Kloucek
2022-06-02 09:55:56 +02:00
parent b5bb5ed087
commit 27b2fbe7e0
33 changed files with 47 additions and 32 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func SettingsCommand(cfg *config.Config) *cli.Command {
Usage: helper.SubcommandDescription(cfg.Settings.Service.Name),
Category: "extensions",
Before: func(c *cli.Context) error {
if err := parser.ParseConfig(cfg); err != nil {
if err := parser.ParseConfig(cfg, true); err != nil {
fmt.Printf("%v", err)
}
cfg.Settings.Commons = cfg.Commons