mirror of
https://shylinux.com/x/icebergs
synced 2025-05-01 03:09:21 +08:00
add some
This commit is contained in:
parent
890c661782
commit
7f8e0c4d90
@ -126,7 +126,7 @@ const DREAM = "dream"
|
||||
|
||||
func init() {
|
||||
Index.MergeCommands(ice.Commands{
|
||||
DREAM: {Name: "dream name@key auto create origin startall stopall cat cmd", Icon: "usr/icons/Launchpad.png", Help: "梦想家", Actions: ice.MergeActions(ice.Actions{
|
||||
DREAM: {Name: "dream name@key auto create origin startall stopall build cat cmd", Icon: "usr/icons/Launchpad.png", Help: "梦想家", Actions: ice.MergeActions(ice.Actions{
|
||||
mdb.SEARCH: {Hand: func(m *ice.Message, arg ...string) {
|
||||
if mdb.IsSearchPreview(m, arg) {
|
||||
m.Cmds("", func(value ice.Maps) { m.PushSearch(mdb.TEXT, m.MergePod(value[mdb.NAME]), value) })
|
||||
@ -172,6 +172,22 @@ func init() {
|
||||
_dream_start(m, m.OptionDefault(mdb.NAME, path.Base(m.Option(nfs.REPOS))))
|
||||
}
|
||||
}},
|
||||
cli.BUILD: {Hand: func(m *ice.Message, arg ...string) {
|
||||
GoToast(m, "", func(toast func(string, int, int)) []string {
|
||||
msg := mdb.HashSelect(m.Spawn())
|
||||
msg.Table(func(index int, value ice.Maps) {
|
||||
toast(value[mdb.NAME], index, msg.Length())
|
||||
m.Push(mdb.NAME, value[mdb.NAME])
|
||||
m.Push(mdb.TEXT, m.Cmdx(SPACE, value[mdb.NAME], "compile", "linux"))
|
||||
m.Push(mdb.NAME, value[mdb.NAME])
|
||||
m.Push(mdb.TEXT, m.Cmdx(SPACE, value[mdb.NAME], "compile", "darwin"))
|
||||
m.Push(mdb.NAME, value[mdb.NAME])
|
||||
m.Push(mdb.TEXT, m.Cmdx(SPACE, value[mdb.NAME], "compile", "windows"))
|
||||
})
|
||||
return nil
|
||||
})
|
||||
m.StatusTimeCount()
|
||||
}},
|
||||
cli.START: {Hand: func(m *ice.Message, arg ...string) {
|
||||
gdb.Event(m, DREAM_START, arg)
|
||||
_dream_start(m, m.Option(mdb.NAME))
|
||||
|
Loading…
x
Reference in New Issue
Block a user