diff --git a/base/web/dream.go b/base/web/dream.go index 4470a18d..bd4192c0 100644 --- a/base/web/dream.go +++ b/base/web/dream.go @@ -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, "") } diff --git a/base/web/route.go b/base/web/route.go index 22d04e33..07c63c5d 100644 --- a/base/web/route.go +++ b/base/web/route.go @@ -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) }}, diff --git a/core/code/autogen.go b/core/code/autogen.go index 91e8aae2..32e84be5 100644 --- a/core/code/autogen.go +++ b/core/code/autogen.go @@ -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), "") } })