forked from x/icebergs
opt cli.runtime
This commit is contained in:
parent
072ae38c88
commit
87b0a27a88
@ -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) {
|
||||
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)
|
||||
}
|
||||
}},
|
||||
},
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user