INNER CODE UNIT · Go
init
lmorg/murex · builtins/core/config/cmd.go:11
func init() {
lang.DefineFunction("config", cmdConfig, types.Any)
lang.DefineFunction("!config", bangConfig, types.Null)
}
func cmdConfig(p *lang.Process) error {
if p.Parameters.Len() == 0 {
return allConfig(p)
}
option, _ := p.Parameters.String(0)
switch option {
case "get":
return getConfig(p)
case "set":
return setConfig(p)