mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-26 09:14:06 +08:00
opt stack
This commit is contained in:
parent
043586efcb
commit
e557472834
23
src/case/tmux.shy
Normal file
23
src/case/tmux.shy
Normal 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() }
|
11
src/demo.shy
11
src/demo.shy
@ -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{}) }
|
|
Loading…
x
Reference in New Issue
Block a user