1
0
forked from x/icebergs
This commit is contained in:
IT 老营长 @云轩领航-创始人 2024-03-13 13:42:57 +08:00
parent 6ecf44962d
commit 8f44941f25

View File

@ -18,10 +18,6 @@ import (
)
func _runtime_init(m *ice.Message) {
if ice.Info.Make.Remote == "" {
ice.Info.Make.Remote = m.Cmdx(SYSTEM, GIT, "config", "--get", "remote.origin.url")
ice.Info.Make.Module = strings.Split(ice.Info.Make.Remote, "://")[1]
}
count := kit.Int(m.Conf(RUNTIME, kit.Keys(BOOT, mdb.COUNT)))
defer m.Conf(RUNTIME, kit.Keys(BOOT, mdb.COUNT), count+1)
kit.For(kit.UnMarshal(kit.Format(ice.Info.Make)), func(k string, v ice.Any) { m.Conf(RUNTIME, kit.Keys(MAKE, strings.ToLower(k)), v) })