forked from x/icebergs
opt inner
This commit is contained in:
parent
b2b608e5f7
commit
43c2102d5d
@ -6,6 +6,7 @@ import (
|
|||||||
kit "github.com/shylinux/toolkits"
|
kit "github.com/shylinux/toolkits"
|
||||||
|
|
||||||
"os"
|
"os"
|
||||||
|
"path"
|
||||||
)
|
)
|
||||||
|
|
||||||
func _inner_save(m *ice.Message, name, text string) {
|
func _inner_save(m *ice.Message, name, text string) {
|
||||||
@ -36,8 +37,17 @@ func init() {
|
|||||||
COMMIT: {Name: "commit name", Help: "提交", Hand: func(m *ice.Message, arg ...string) {
|
COMMIT: {Name: "commit name", Help: "提交", Hand: func(m *ice.Message, arg ...string) {
|
||||||
web.StoryCatch(m, "", arg[0])
|
web.StoryCatch(m, "", arg[0])
|
||||||
}},
|
}},
|
||||||
|
"go": {Name: "go name", Help: "提交", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
m.Cmdy(ice.CLI_SYSTEM, "go", "run", path.Join("./", arg[0]))
|
||||||
|
}},
|
||||||
|
"project": {Name: "go name", Help: "提交", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
if len(arg) == 0 || arg[0] == "" {
|
||||||
|
arg = append(arg, "./")
|
||||||
|
}
|
||||||
|
m.Cmdy("nfs.dir", path.Join(arg...), "file")
|
||||||
|
}},
|
||||||
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
m.Cmdy("nfs.dir", arg)
|
m.Cmdy("nfs.dir", path.Join(arg...), "file")
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
}, nil)
|
}, nil)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user