1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00

opt stack

This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-04-07 21:41:55 +08:00
parent 043586efcb
commit e557472834
2 changed files with 23 additions and 11 deletions

23
src/case/tmux.shy Normal file
View File

@ -0,0 +1,23 @@
package tmux
import "shylinux.com/x/ice"
type tmux struct {
list string `name:"tmux2 zone id auto show"`
}
func (s tmux) Show(m *ice.Message, arg ...string) {
m.Echo("hello show world\n")
m.Echo("hello show world\n")
m.Echo("hello show world\n")
}
func (s tmux) List(m *ice.Message, arg ...string) {
m.Echo("hello list world\n")
m.Echo("hello list world\n")
m.Echo("hello list world\n")
m.StatusTime()
}
func init() { ice.Cmd("web.code.tmux2.tmux2", tmux{}) }
func show() { m.Echo("hello world") }
func init() { show() }

View File

@ -1,11 +0,0 @@
package tmux
import "shylinux.com/x/ice"
type tmux struct{}
func (s tmux) List(m *ice.Message, arg ...string) {
m.Echo("hello world")
}
func init() { ice.Cmd("web.code.tmux2.tmux2", tmux{}) }