mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 08:48:06 +08:00
opt type
This commit is contained in:
parent
8f1a284feb
commit
043586efcb
9
demo.txt
Normal file
9
demo.txt
Normal 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
10
demo1.txt
Normal file
@ -0,0 +1,10 @@
|
||||
IF(E4 > 500000, 200,
|
||||
IF(E4 > 100000, 100+E4-10000,
|
||||
IF(E4 > 50000,
|
||||
IF(E4 > 10000,
|
||||
IF(E4 > 3000,
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
24
src/demo.shy
24
src/demo.shy
@ -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{}) }
|
||||
|
@ -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()
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
func _init(can, msg) {
|
||||
msg.Echo("hello world")
|
||||
msg.Dump(can)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user