1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-03 20:07:01 +08:00

add require_pull

This commit is contained in:
shylinux 2020-11-29 15:58:34 +08:00
parent 0d3dec502b
commit 3c9285a595
3 changed files with 3 additions and 5 deletions

View File

@ -124,7 +124,7 @@ ish_miss_prepare_install
},
Commands: map[string]*ice.Command{
DREAM: {Name: "dream name path auto 启动", Help: "梦想家", Action: map[string]*ice.Action{
gdb.START: {Name: "start type=worker,server repos name", Help: "启动", Hand: func(m *ice.Message, arg ...string) {
gdb.START: {Name: "start name repos", Help: "启动", Hand: func(m *ice.Message, arg ...string) {
if m.Option(kit.MDB_NAME) == "self" {
m.Option(kit.MDB_NAME, "")
}

View File

@ -81,7 +81,7 @@ func init() {
m.SortStrR(kit.MDB_PATH)
}
}},
gdb.START: {Name: "start type=worker,server repos name template", Help: "启动", Hand: func(m *ice.Message, arg ...string) {
gdb.START: {Name: "start name repos template", Help: "启动", Hand: func(m *ice.Message, arg ...string) {
m.Cmdy(SPACE, m.Option(ROUTE), DREAM, gdb.START, arg)
m.Option(ice.MSG_PROCESS, ice.PROCESS_INNER)
}},

View File

@ -46,10 +46,8 @@ func _autogen_index(m *ice.Message, dir string, from string, ctx string) {
}
func _autogen_main(m *ice.Message, file string, mod string, ctx string) {
list := []string{}
m.Option(nfs.CAT_CB, func(line string, index int) {
list = append(list, line)
if strings.HasPrefix(line, "import (") {
if list = append(list, line); strings.HasPrefix(line, "import (") {
list = append(list, kit.Format(` _ "%s/src/%s"`, mod, ctx), "")
}
})