diff --git a/src/case/tmux.shy b/src/case/tmux.shy new file mode 100644 index 00000000..ff3ae9a3 --- /dev/null +++ b/src/case/tmux.shy @@ -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() } diff --git a/src/demo.shy b/src/demo.shy deleted file mode 100644 index 66a48403..00000000 --- a/src/demo.shy +++ /dev/null @@ -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{}) }