MSP-5014 CheckGlobal to ApplyGlobalFlags

This commit is contained in:
Синельник Тимур Романович committed 2025-03-20 18:21:56 +03:00
1 parent ff2922cf1e
commit 0005f1ac0c
9 files changed
+39 -31

No files matched your search

+5 -2
View File
@@ -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
}