MSP-5014 Add vars commands
This commit is contained in:
1 parent
e264da7a9f
commit
8f74edd7c8
9 files changed
+336
-34
No files matched your search
+2
-2
@@ -13,11 +13,11 @@ const (
|
||||
OutPrintJsonValue = "json"
|
||||
OutPrintHtmlValue = "html"
|
||||
|
||||
withCommonConfigName = "full"
|
||||
withCommonConfigUsage = "compile data with common configs"
|
||||
secretVariableName = "secret"
|
||||
)
|
||||
|
||||
var (
|
||||
outPrintStatusUsage = fmt.Sprintf("out print for status; %s", OutPrintJsonValue)
|
||||
outPrintSchemaUsage = fmt.Sprintf("out print for schema; %s or %s", OutPrintJsonValue, OutPrintHtmlValue)
|
||||
secretVariableUsage = "set variable as secret"
|
||||
)
|
||||
+4
-1
@@ -3,8 +3,9 @@ package flag
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
"ispctl/service"
|
||||
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
@@ -20,6 +21,8 @@ var (
|
||||
//---local---
|
||||
OutPrintStatus = &cli.StringFlag{Name: outPrintName, Usage: outPrintStatusUsage}
|
||||
OutPrintSchema = &cli.StringFlag{Name: outPrintName, Usage: outPrintSchemaUsage, Value: OutPrintJsonValue}
|
||||
|
||||
SetVariableSecretType = &cli.BoolFlag{Name: secretVariableName, Usage: secretVariableUsage}
|
||||
)
|
||||
|
||||
func CheckGlobal(c *cli.Context) error {
|
||||
|
||||
Reference in new issue
Block a user