MSP-5014 CheckGlobal to ApplyGlobalFlags
This commit is contained in:
1 parent
ff2922cf1e
commit
0005f1ac0c
9 files changed
+39
-31
No files matched your search
@@ -2,11 +2,13 @@ package bash
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
|
||||
"github.com/txix-open/bellows"
|
||||
"ispctl/command/flag"
|
||||
"ispctl/service"
|
||||
|
||||
"github.com/txix-open/bellows"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -33,7 +35,8 @@ func Get(first bashArg, second bashArg) *bashCommand {
|
||||
}
|
||||
|
||||
func (c bashCommand) Complete(ctx *cli.Context) {
|
||||
if err := flag.CheckGlobal(ctx); err != nil {
|
||||
err := flag.ApplyGlobalFlags(ctx)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user