MSP-5014 Replace call flag.CheckGlobal(ctx) by calling Before
This commit is contained in:
1 parent
5dbd07dc03
commit
ff2922cf1e
7 files changed
+29
-64
No files matched your search
+1
-4
@@ -17,11 +17,8 @@ func Merge() *cli.Command {
|
||||
Name: "merge",
|
||||
Usage: "merge actual config with config from stdin",
|
||||
BashComplete: bash.Get(bash.CommonConfigName, bash.Empty).Complete,
|
||||
Before: flag.CheckGlobal,
|
||||
Action: func(context *cli.Context) error {
|
||||
err := flag.CheckGlobal(context)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
moduleName := context.Args().First()
|
||||
config, err := service.Config.GetConfigurationByModuleName(moduleName)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user