diff --git a/base/cli/runtime.go b/base/cli/runtime.go index 1f6f0435..32157649 100644 --- a/base/cli/runtime.go +++ b/base/cli/runtime.go @@ -77,6 +77,7 @@ func init() { PROCINFO: {Name: "procinfo", Help: "进程信息", Hand: func(m *ice.Message, arg ...string) { m.Split(m.Cmdx(SYSTEM, "ps", "u"), "", " ", "\n") m.PushAction("kill") + m.StatusTimeCount() }}, "kill": {Name: "kill", Help: "结束进程", Hand: func(m *ice.Message, arg ...string) { m.Cmdy(SYSTEM, "kill", m.Option("PID")) diff --git a/misc/chrome/sync.go b/misc/chrome/sync.go index 17dfaa93..0611b41e 100644 --- a/misc/chrome/sync.go +++ b/misc/chrome/sync.go @@ -2,8 +2,6 @@ package crx import ( ice "github.com/shylinux/icebergs" - "github.com/shylinux/icebergs/base/cli" - "github.com/shylinux/icebergs/base/ctx" "github.com/shylinux/icebergs/base/mdb" kit "github.com/shylinux/toolkits" ) @@ -24,17 +22,6 @@ func init() { )}, }, Commands: map[string]*ice.Command{ - "/page": {Name: "/page", Help: "网页", Action: map[string]*ice.Action{ - ctx.COMMAND: {Name: "command", Help: "命令", Hand: func(m *ice.Message, arg ...string) { - if arg[0] == cli.RUN { - m.Cmdy(arg[1:]) - return - } - m.Cmdy(ctx.COMMAND, arg) - }}, - }, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { - - }}, "/sync": {Name: "/sync", Help: "同步", Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) { m.Cmdy(SYNC, mdb.INSERT, arg) }}, diff --git a/misc/vim/sess.go b/misc/vim/sess.go index b8cbc9ff..bca291ce 100644 --- a/misc/vim/sess.go +++ b/misc/vim/sess.go @@ -40,7 +40,7 @@ func init() { } switch m.Render(ice.RENDER_RESULT); m.R.URL.String() { - case "/qrcode", "/sess": // 登录入口 + case "/qrcode", "/input", "/sess": // 登录入口 return }