1
0
forked from x/ContextOS

opt plugin

This commit is contained in:
shaoying 2019-08-05 22:58:57 +08:00
parent c5dc2927c7
commit 497d721fa1
4 changed files with 10 additions and 11 deletions

View File

@ -47,8 +47,6 @@ install() {
wget -O ${ctx_app} "$ctx_dev/publish/${ctx_app}?GOOS=$GOOS&GOARCH=$GOARCH" && chmod a+x ${ctx_app} \
&& ${md5} ${ctx_app} && ./${ctx_app} upgrade ${target} && ./${ctx_app} upgrade portal \
&& mv ${ctx_app} bin/${ctx_app}
mkdir -p usr/script && touch usr/script/local.shy && cd etc && ln -s ../usr/script/local.shy .
}
hup() {
echo "term hup"

View File

@ -1034,6 +1034,7 @@ var Index = &ctx.Context{Name: "cli", Help: "管理中心",
}
if m.Confs("ssh.node", arg[0]) {
m.Log("fuck", "waht %v", arg[1])
switch kit.Select("", arg, 1) {
case "stop":
m.Cmdy("ssh._route", arg[0], "context", "cli", "quit", 0)

View File

@ -4,5 +4,5 @@ var version = struct {
host string
self int
}{
"2019-08-02 23:49:50", "com.mac", 370,
"2019-08-05 15:48:07", "ZYB-20190522USI", 372,
}

View File

@ -6,7 +6,7 @@ fun project "项目" "" "" \
button "执行" \
exports see name see
copy cli.project $1 $2
copy cli.project __
end
fun compile "编译" "" "" \
@ -15,7 +15,7 @@ fun compile "编译" "" "" \
text "" name see imports plugin_see \
button "编译"
copy cli.compile $1 $2
copy cli.compile __
end
fun publish "发布" "" "" \
@ -23,7 +23,7 @@ fun publish "发布" "" "" \
text "" name see imports plugin_see \
button "发布"
copy cli.publish $1
copy cli.publish __
end
fun upgrade "升级" "" "" \
@ -33,7 +33,7 @@ fun upgrade "升级" "" "" \
text "" name see imports plugin_see \
button "升级"
copy ssh._route $1 cli.upgrade $2 $3
copy ssh._route _ cli.upgrade __
end
fun missyou "任务" "" "" \
@ -42,7 +42,7 @@ fun missyou "任务" "" "" \
button "行动" action auto \
exports you "" you
copy cli.missyou $1
copy cli.missyou __
end
fun pod "设备" "" "" \
@ -51,7 +51,7 @@ fun pod "设备" "" "" \
button "行动" action auto \
exports pod pod
copy ssh._route $1 ssh.remote $1
copy ssh._route _ ssh.remote __
end
fun ctx "模块" "" "" \
@ -61,7 +61,7 @@ fun ctx "模块" "" "" \
button "行动" \
exports ctx names
copy ssh._route $1 context $2 list
copy ssh._route _ context _ list __
end
fun cmd "命令" "" "" \
@ -82,6 +82,6 @@ fun dir "目录" "" "" \
button "回退" click Back \
exports dir "" dir
copy ssh._route $1 nfs.dir $2 time size line path
copy ssh._route _ nfs.dir _ time size line path
end