add(new command schema)
This commit is contained in:
1 parent
fcafab05d1
commit
f32d9a80b0
16 files changed
+306
-77
No files matched your search
@@ -1,10 +0,0 @@
|
||||
package flag
|
||||
|
||||
import "github.com/codegangsta/cli"
|
||||
|
||||
var (
|
||||
Host = cli.StringFlag{Name: GateHostName, Usage: "overrides gateHost"}
|
||||
Uuid = cli.StringFlag{Name: InstanceUuidName, Usage: "overrides instanceUuid"}
|
||||
Color = cli.BoolFlag{Name: ColorName, Usage: "colorize the json for outputing to screen"}
|
||||
Unsafe = cli.BoolFlag{Name: UnsafeName, Usage: "disable checking schema for set configuration"}
|
||||
)
|
||||
@@ -0,0 +1,25 @@
|
||||
package flag
|
||||
|
||||
import "fmt"
|
||||
|
||||
const (
|
||||
hostName = "gateHost, g"
|
||||
hostUsage = "overrides gateHost"
|
||||
|
||||
uuidName = "instanceUuid, u"
|
||||
uuidUsage = "overrides instanceUuid"
|
||||
|
||||
colorName = "color, c"
|
||||
colorUsage = "colorize the json for outputing to screen"
|
||||
|
||||
unsafeName = "unsafe"
|
||||
unsafeUsage = "disable checking schema for set configuration"
|
||||
|
||||
outPrintName = "o"
|
||||
OutPrintJsonValue = "json"
|
||||
OutPrintHtmlValue = "html"
|
||||
)
|
||||
|
||||
var (
|
||||
outPrintUsage = fmt.Sprintf("out print for schema; %s or %s", OutPrintJsonValue, OutPrintHtmlValue)
|
||||
)
|
||||
@@ -1,8 +0,0 @@
|
||||
package flag
|
||||
|
||||
const (
|
||||
GateHostName = "gateHost, g"
|
||||
InstanceUuidName = "instanceUuid, u"
|
||||
ColorName = "color, c"
|
||||
UnsafeName = "unsafe"
|
||||
)
|
||||
@@ -0,0 +1,13 @@
|
||||
package flag
|
||||
|
||||
import "github.com/codegangsta/cli"
|
||||
|
||||
var (
|
||||
//---global---
|
||||
Host = cli.StringFlag{Name: hostName, Usage: hostUsage}
|
||||
Uuid = cli.StringFlag{Name: uuidName, Usage: uuidUsage}
|
||||
Color = cli.BoolFlag{Name: colorName, Usage: colorUsage}
|
||||
Unsafe = cli.BoolFlag{Name: unsafeName, Usage: unsafeUsage}
|
||||
//---local---
|
||||
OutPrint = cli.StringFlag{Name: outPrintName, Usage: outPrintUsage, Value: OutPrintJsonValue}
|
||||
)
|
||||
Reference in new issue
Block a user