1
0
Fork 0
yeast/app.go

32 lines
477 B
Go
Raw Normal View History

2015-02-10 19:41:15 +00:00
package main
import (
"flag"
"github.com/kr/pretty"
"github.com/localhots/confection"
2015-02-11 09:03:56 +00:00
"github.com/localhots/yeast/chain"
2015-02-10 19:41:15 +00:00
"github.com/localhots/yeast/core"
2015-02-11 09:03:56 +00:00
"github.com/localhots/yeast/unit"
2015-02-10 19:41:15 +00:00
)
func init() {
confection.SetupFlags()
flag.Parse()
}
func main() {
core.InitConfig()
2015-02-11 12:27:51 +00:00
ub := unit.NewBank(core.Conf().UnitsConfig)
ub.Reload()
cb := chain.NewBank(core.Conf().ChainsConfig, ub)
cb.Reload()
2015-02-10 19:41:15 +00:00
pretty.Println(core.Conf())
2015-02-10 19:51:01 +00:00
println("Waiting")
2015-02-10 19:41:15 +00:00
select {}
}