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
-3
@@ -25,6 +25,7 @@ func Status() *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: "status",
|
||||
Usage: "get available configs",
|
||||
Before: flag.CheckGlobal,
|
||||
Action: status.action,
|
||||
Flags: []cli.Flag{
|
||||
flag.OutPrintStatus,
|
||||
@@ -37,9 +38,6 @@ var status statusCommand
|
||||
type statusCommand struct{}
|
||||
|
||||
func (statusCommand) action(ctx *cli.Context) error {
|
||||
if err := flag.CheckGlobal(ctx); err != nil {
|
||||
return err
|
||||
}
|
||||
if arrayOfModules, err := service.Config.GetAvailableConfigs(); err != nil {
|
||||
return err
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user