forked from x/icebergs
opt some
This commit is contained in:
parent
6ecf44962d
commit
8f44941f25
@ -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) })
|
||||
|
Loading…
x
Reference in New Issue
Block a user