forked from x/icebergs
add some
This commit is contained in:
parent
4ea7d66862
commit
045f57af43
@ -345,6 +345,11 @@ func init() {
|
|||||||
})
|
})
|
||||||
kit.If(m.Option(mdb.NAME) == "", func() { m.Sleep("5s").Cmdy(ROUTE, cli.BUILD).ProcessInner() })
|
kit.If(m.Option(mdb.NAME) == "", func() { m.Sleep("5s").Cmdy(ROUTE, cli.BUILD).ProcessInner() })
|
||||||
}},
|
}},
|
||||||
|
"gowork": {Name: "gowork name", Help: "工作区", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
DreamEach(m, m.Option(mdb.NAME), "", func(name string) {
|
||||||
|
m.Cmd(cli.SYSTEM, cli.GO, "work", "use", path.Join(ice.USR_LOCAL_WORK, name))
|
||||||
|
})
|
||||||
|
}},
|
||||||
PUBLISH: {Name: "publish name", Hand: func(m *ice.Message, arg ...string) {
|
PUBLISH: {Name: "publish name", Hand: func(m *ice.Message, arg ...string) {
|
||||||
m.Option(ice.MSG_TITLE, kit.Keys(m.Option(ice.MSG_USERPOD0), m.Option(ice.MSG_USERPOD), m.CommandKey(), m.ActionKey()))
|
m.Option(ice.MSG_TITLE, kit.Keys(m.Option(ice.MSG_USERPOD0), m.Option(ice.MSG_USERPOD), m.CommandKey(), m.ActionKey()))
|
||||||
list := []string{cli.LINUX, cli.DARWIN, cli.WINDOWS}
|
list := []string{cli.LINUX, cli.DARWIN, cli.WINDOWS}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user