forked from x/ContextOS
mac mod cli.target 创建新模块时自动切换到上下文
This commit is contained in:
parent
6b0d2bc998
commit
4671fd1b5d
13
etc/init.sh
13
etc/init.sh
@ -3,10 +3,15 @@
|
||||
# login root 94ca7394d007fa189cc4be0a2625d716 root
|
||||
login root root
|
||||
|
||||
~cli
|
||||
remote slaver listen :9393 tcp
|
||||
# ~cli
|
||||
# remote slaver listen :9393 tcp
|
||||
|
||||
# ~aaa
|
||||
# login shy shy
|
||||
userinfo add context hi hello nice
|
||||
userinfo add command hi context
|
||||
# userinfo add context hi hello nice
|
||||
# userinfo add command hi context
|
||||
~web
|
||||
listen
|
||||
# ~demo
|
||||
# listen
|
||||
# ~home spawn test
|
||||
|
@ -390,6 +390,7 @@ var Index = &ctx.Context{Name: "cli", Help: "管理终端",
|
||||
args := m.Meta["spawn"]
|
||||
msg := m.Spawn(v)
|
||||
v.Spawn(msg, args[0]).Begin(msg)
|
||||
cli.target = msg.Target
|
||||
case m.Has("switch"):
|
||||
cli.target = v
|
||||
case m.Has("show"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user