1
0
forked from x/ContextOS
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-04-07 00:25:33 +08:00
parent 8f1a284feb
commit 043586efcb
5 changed files with 25 additions and 30 deletions

9
demo.txt Normal file
View File

@ -0,0 +1,9 @@
IF(E4 > 3000,
IF(E4 > 10000,
IF(E4 > 50000,
IF(E4 > 100000,
IF(E4 > 500000,
200,
100+E4-100000,
)
)

10
demo1.txt Normal file
View File

@ -0,0 +1,10 @@
IF(E4 > 500000, 200,
IF(E4 > 100000, 100+E4-10000,
IF(E4 > 50000,
IF(E4 > 10000,
IF(E4 > 3000,
)
)
)
)

View File

@ -1,23 +1,11 @@
package tmux
import (
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/cli"
kit "shylinux.com/x/toolkits"
)
import "shylinux.com/x/ice"
func init() { m.DebugStack() }
type tmux struct{}
const TMUX = "tmux"
func (s tmux) List(m *ice.Message, arg ...string) {
m.Echo("hello world")
}
var Index = &ice.Context{Name: TMUX, Help: "工作台", Commands: ice.Commands{
TMUX: {Name: "tmux path auto start order build download", Help: "服务", Actions: ice.MergeActions(ice.Actions{
cli.START: {Help: "启动", Hand: func(m *ice.Message, arg ...string) {}},
}), Hand: func(m *ice.Message, arg ...string) {}},
}}
// func init() { code.Index.Register(Index, &web.Frame{}) }
func init() { m.DebugStack() }
func init() { m.Echo(kit.Formats(Index)) }
func init() { m.Echo(kit.Formats(Index.Name)) }
func init() { m.Echo(kit.Formats(Index.Commands[TMUX].Name)) }
func init() { ice.Cmd("web.code.tmux2.tmux2", tmux{}) }

View File

@ -1,8 +0,0 @@
func create(m, type) {
m.Echo("hello world")
}
func list(m, hash) {
m.Echo("hello world")
m.Echo("hello world")
m.Action("create").StatusTime().Display()
}

View File

@ -1,4 +0,0 @@
func _init(can, msg) {
msg.Echo("hello world")
msg.Dump(can)
}