MSP-5014 Try get rid of global service and autocomplete

This commit is contained in:
Синельник Тимур Романович committed 2025-03-24 11:30:39 +03:00
1 parent 84f639a9d3
commit c267b1ae6e
15 files changed
+468 -335

No files matched your search

-14
View File
@@ -1,10 +1,6 @@
package flag
import (
"strings"
"ispctl/service"
"github.com/urfave/cli/v2"
)
@@ -24,13 +20,3 @@ var (
SetVariableSecretType = &cli.BoolFlag{Name: secretVariableName, Usage: secretVariableUsage}
)
func ApplyGlobalFlags(c *cli.Context) error {
var host string
service.Config.UnsafeEnable = c.Bool(Unsafe.Name)
host = c.String(Host.Name)
host = strings.Replace(host, "'", "", -1)
return service.Config.ReceiveConfiguration(host)
}