1
0
forked from x/icebergs
icebergs/core/chat/macos/session.go
2024-01-17 22:46:59 +08:00

20 lines
507 B
Go

package macos
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/aaa"
"shylinux.com/x/icebergs/base/mdb"
)
const SESSION = "session"
func init() {
Index.MergeCommands(ice.Commands{
SESSION: {Help: "会话", Role: aaa.VOID, Actions: ice.MergeActions(CmdHashAction(mdb.NAME), mdb.ExportHashAction()), Hand: func(m *ice.Message, arg ...string) {
if mdb.HashSelect(m, arg...); len(arg) > 0 {
m.EchoIFrame(m.MergePodCmd("", DESKTOP) + "#" + m.Append(mdb.NAME))
}
}},
})
}