From feb4d49d638daa473683ea4ef0c6229c02f9fa1b Mon Sep 17 00:00:00 2001 From: shy Date: Wed, 27 Dec 2023 08:51:44 +0800 Subject: [PATCH] opt icon --- base/cli/runtime.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/cli/runtime.go b/base/cli/runtime.go index 03eb9e5e..3cfc43cf 100644 --- a/base/cli/runtime.go +++ b/base/cli/runtime.go @@ -163,7 +163,7 @@ const RUNTIME = "runtime" func init() { Index.MergeCommands(ice.Commands{ - RUNTIME: {Name: "runtime info=bootinfo,ifconfig,diskinfo,hostinfo,userinfo,procstat,procinfo,bootinfo,role,api,cli,cmd,mod,env,path,chain,routine auto upgrade restart reboot logs conf", Icon: "Infomation.png", Help: "运行环境", Actions: ice.MergeActions(ice.Actions{ + RUNTIME: {Name: "runtime info=bootinfo,ifconfig,diskinfo,hostinfo,userinfo,procstat,procinfo,bootinfo,role,api,cli,cmd,mod,env,path,chain,routine auto upgrade reboot stash logs conf", Icon: "Infomation.png", Help: "运行环境", Actions: ice.MergeActions(ice.Actions{ ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { aaa.White(m, ice.LICENSE) _runtime_init(m) @@ -256,10 +256,10 @@ func init() { m.Cmdy("web.code.upgrade") } }}, - RESTART: {Help: "重启", Hand: func(m *ice.Message, arg ...string) { + "reboot": {Help: "重启", Icon: "bi bi-bootstrap-reboot", Hand: func(m *ice.Message, arg ...string) { m.Go(func() { m.Sleep30ms(ice.EXIT, 1) }) }}, - "reboot": {Help: "清空", Hand: func(m *ice.Message, arg ...string) { + "stash": {Help: "清空", Icon: "bi bi-trash", Hand: func(m *ice.Message, arg ...string) { m.Cmd(SYSTEM, "git", "stash") m.Go(func() { m.Sleep30ms(ice.QUIT, 1) }) }},