leprechaun
leprechaun copied to clipboard
Using Cobra/Viper
Hi...
i was reading the project and realized that parsing command line and configuration codes are in daemon/main.go
file. How you think about separating daemon and project bootstrapping logic and use some packages like github.com/spf13/{cobra,viper}?
thanks
Hello,
Thanks for you contribution. I reviewed Cobra and Viper and they seem like a good fit. But one thing regarding Viper is that if we wan't to implement it in order not to break backwards compatibility we will need to have our layer above Viper which will totally defeat purpose of Viper.
Also i don't mind increasing major version and start working on 2.0.0 but before that i would like to review couple more things which can be implemented in major version update
If you have more suggestions regarding this i'm open for discussion