1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-05-26 08:28:03 +08:00
parent bfaf7380e1
commit 120e65bb92

View File

@ -161,7 +161,9 @@ func RenderPodCmd(m *ice.Message, pod, cmd string, arg ...ice.Any) {
RenderResult(m, kit.Format("not found command %s", cmd)) RenderResult(m, kit.Format("not found command %s", cmd))
} else { } else {
m.OptionDefault(mdb.ICONS, m.Resource(msg.Append(mdb.ICONS))) m.OptionDefault(mdb.ICONS, m.Resource(msg.Append(mdb.ICONS)))
m.OptionDefault(TITLE, kit.Select(cmd, msg.Append(mdb.HELP)+kit.Select("", " "+pod, pod != ""), !m.IsEnglish())) if !kit.IsIn(cmd, PORTAL, DESKTOP, ADMIN) {
m.OptionDefault(TITLE, kit.Select(cmd, msg.Append(mdb.HELP)+kit.Select("", " "+pod, pod != ""), !m.IsEnglish()))
}
RenderCmds(m, kit.Dict(msg.AppendSimple(), ctx.ARGS, kit.Simple(arg), ctx.DISPLAY, m.Option(ice.MSG_DISPLAY))) RenderCmds(m, kit.Dict(msg.AppendSimple(), ctx.ARGS, kit.Simple(arg), ctx.DISPLAY, m.Option(ice.MSG_DISPLAY)))
} }
} }