From 497d721fa14b7f488c1231a11f29150a42bd8892 Mon Sep 17 00:00:00 2001 From: shaoying Date: Mon, 5 Aug 2019 22:58:57 +0800 Subject: [PATCH] opt plugin --- bin/boot.sh | 2 -- src/contexts/cli/cli.go | 1 + src/contexts/cli/version.go | 2 +- src/plugin/context/index.shy | 16 ++++++++-------- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/bin/boot.sh b/bin/boot.sh index bdf9af43..ae8237b8 100755 --- a/bin/boot.sh +++ b/bin/boot.sh @@ -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" diff --git a/src/contexts/cli/cli.go b/src/contexts/cli/cli.go index b0254c49..04a30522 100644 --- a/src/contexts/cli/cli.go +++ b/src/contexts/cli/cli.go @@ -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) diff --git a/src/contexts/cli/version.go b/src/contexts/cli/version.go index 20401e01..128eabcb 100644 --- a/src/contexts/cli/version.go +++ b/src/contexts/cli/version.go @@ -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, } diff --git a/src/plugin/context/index.shy b/src/plugin/context/index.shy index 4105fd95..d1a434b0 100644 --- a/src/plugin/context/index.shy +++ b/src/plugin/context/index.shy @@ -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