1
0
forked from x/icebergs
icebergs/core/chat/macos/opens.go
2023-05-10 10:38:31 +08:00

21 lines
372 B
Go

package macos
import (
"strings"
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/cli"
)
const OPENS = "opens"
func init() {
Index.MergeCommands(ice.Commands{
OPENS: {Name: "opens app auto", Hand: func(m *ice.Message, arg ...string) {
if strings.HasPrefix(m.Option(ice.MSG_USERWEB), "http://localhost:") {
cli.Opens(m, arg...)
}
}},
})
}