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

+4 -3
View File
@@ -5,11 +5,12 @@ import (
"os"
"strings"
"github.com/olekukonko/tablewriter"
"github.com/urfave/cli/v2"
"ispctl/command/flag"
"ispctl/command/utils"
"ispctl/service"
"github.com/olekukonko/tablewriter"
"github.com/urfave/cli/v2"
)
const (
@@ -25,7 +26,7 @@ func Status() *cli.Command {
return &cli.Command{
Name: "status",
Usage: "get available configs",
Before: flag.CheckGlobal,
Before: flag.ApplyGlobalFlags,
Action: status.action,
Flags: []cli.Flag{
flag.OutPrintStatus,