1
0
forked from x/icebergs

opt cli.runtime

This commit is contained in:
shaoying 2020-06-18 15:11:02 +08:00
parent 072ae38c88
commit 87b0a27a88

View File

@ -89,7 +89,14 @@ var Index = &ice.Context{Name: "cli", Help: "命令模块",
}}, }},
RUNTIME: {Name: "runtime", Help: "运行环境", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { RUNTIME: {Name: "runtime", Help: "运行环境", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
m.Cmdy(ice.CTX_CONFIG, RUNTIME, arg) switch kit.Select("", arg, 0) {
case "hostname":
HostName = arg[1]
m.Conf(RUNTIME, "boot.hostname", arg[1])
m.Echo(m.Conf(RUNTIME, "boot.hostname"))
default:
m.Cmdy(ice.CTX_CONFIG, RUNTIME, arg)
}
}}, }},
}, },
} }