add(checking schema to set configuration and unsafe flag)

This commit is contained in:
DeniskaRediska committed 2019-07-26 15:31:33 +03:00
1 parent 3543ded23e
commit c8d028fcd4
14 files changed
+156 -45

No files matched your search

+6 -7
View File
@@ -9,9 +9,7 @@ import (
"os"
)
var (
version = "1.0.0"
)
var version = "1.1.0"
func main() {
defineConfigurationPath()
@@ -22,10 +20,10 @@ func initCommands() {
app := cli.NewApp()
app.Usage = "isp configurations updater"
app.UsageText =
` ispctl status [flag...]
ispctl get [flag...] module_name property_path
ispctl set [flag...] module_name property_path [new_object]
ispctl delete [flag...] module_name property_path`
` ispctl [flag...] status
ispctl [flag...] get module_name property_path
ispctl [flag...] set module_name property_path [new_object]
ispctl [flag...] delete module_name property_path`
app.Version = version
@@ -33,6 +31,7 @@ func initCommands() {
flag.Host,
flag.Uuid,
flag.Color,
flag.Unsafe,
}
app.Commands = []cli.Command{