mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 09:34:05 +08:00
opt chrome
This commit is contained in:
parent
45c7ede5cf
commit
8a972d3a0b
@ -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"))
|
||||
|
@ -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)
|
||||
}},
|
||||
|
@ -40,7 +40,7 @@ func init() {
|
||||
}
|
||||
|
||||
switch m.Render(ice.RENDER_RESULT); m.R.URL.String() {
|
||||
case "/qrcode", "/sess": // 登录入口
|
||||
case "/qrcode", "/input", "/sess": // 登录入口
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user