diff --git a/etc/init.sh b/etc/init.sh index 9ad83e43..39b23fa6 100644 --- a/etc/init.sh +++ b/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 diff --git a/src/context/cli/cli.go b/src/context/cli/cli.go index 8040bf17..cef8b116 100644 --- a/src/context/cli/cli.go +++ b/src/context/cli/cli.go @@ -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"):