forked from x/icebergs
18 lines
413 B
Go
18 lines
413 B
Go
package macos
|
|
|
|
import (
|
|
ice "shylinux.com/x/icebergs"
|
|
"shylinux.com/x/icebergs/base/aaa"
|
|
"shylinux.com/x/icebergs/base/mdb"
|
|
)
|
|
|
|
const MENU = "menu"
|
|
|
|
func init() {
|
|
Index.MergeCommands(ice.Commands{
|
|
MENU: {Help: "菜单栏", Actions: ice.MergeActions(aaa.RoleAction(), CmdHashAction(), mdb.ClearOnExitHashAction())},
|
|
})
|
|
}
|
|
|
|
func MenuAppend(m *ice.Message, icon, index string) { install(m, MENU, icon, index) }
|