mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt project
This commit is contained in:
parent
973e756914
commit
41b74c75fe
@ -754,6 +754,18 @@ var Index = &ctx.Context{Name: "cli", Help: "管理中心",
|
||||
case "stat":
|
||||
m.Cmdy("nfs.dir", "src", "dir_deep", "dir_type", "file", "dir_sort", "line", "int_r").CopyTo(m, "append")
|
||||
|
||||
case "trend":
|
||||
m.Cmdy("nfs.git", "sum").CopyTo(m, "append")
|
||||
|
||||
case "submit":
|
||||
if len(arg) > 1 {
|
||||
m.Cmdp(0, []string{"git init"}, []string{"cli.system", "git"}, [][]string{
|
||||
[]string{"stash"}, []string{"pull"}, []string{"stash", "pop"},
|
||||
[]string{"commit", "-am", arg[1]}, []string{"push"},
|
||||
})
|
||||
}
|
||||
m.Cmdy("nfs.git", "status")
|
||||
|
||||
case "import":
|
||||
list := [][]string{}
|
||||
m.Confm("project", "import", func(index int, value string) {
|
||||
@ -768,8 +780,7 @@ var Index = &ctx.Context{Name: "cli", Help: "管理中心",
|
||||
"cmd_env", "GOPATH", m.Conf("runtime", "boot.ctx_path")}, list)
|
||||
|
||||
case "plugin":
|
||||
arg = arg[1:]
|
||||
if len(arg) == 0 {
|
||||
if arg = arg[1:]; len(arg) == 0 {
|
||||
m.Cmdy("nfs.dir", m.Conf("project", "plugin.path"), "time", "line", "name")
|
||||
break
|
||||
}
|
||||
|
@ -4,5 +4,5 @@ var version = struct {
|
||||
host string
|
||||
self int
|
||||
}{
|
||||
"2019-08-21 17:28:16", "com", 370,
|
||||
"2019-08-21 19:45:50", "ZYB-20190522USI", 402,
|
||||
}
|
||||
|
@ -852,7 +852,7 @@ function Plugin(page, pane, field, run) {
|
||||
(output.innerHTML = "", Editor(plugin, option, output, output.clientWidth-40, 400, 10, msg))
|
||||
},
|
||||
canvas: function(msg, cb) {
|
||||
typeof cb == "function" && !cb(msg) || (output.innerHTML = "", Canvas(plugin, option, output, output.clientWidth-40, 400, 10, msg))
|
||||
typeof cb == "function" && !cb(msg) || (output.innerHTML = "", Canvas(plugin, option, output, pane.target.clientWidth-45, pane.target.clientHeight-175, 10, msg))
|
||||
},
|
||||
},
|
||||
onexport: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user