From e557472834a0f944be4281a06a0c540be5cf8c1f Mon Sep 17 00:00:00 2001 From: shylinux Date: Fri, 7 Apr 2023 21:41:55 +0800 Subject: [PATCH] opt stack --- src/case/tmux.shy | 23 +++++++++++++++++++++++ src/demo.shy | 11 ----------- 2 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 src/case/tmux.shy delete mode 100644 src/demo.shy 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{}) }