boilr icon indicating copy to clipboard operation
boilr copied to clipboard

Have the option to use toml instead of json

Open Ilyes512 opened this issue 5 years ago • 2 comments

Ilyes512 avatar Jul 27 '18 11:07 Ilyes512

I'm not sure if you have taken a look at https://github.com/spf13/viper

  • setting defaults
  • reading from JSON, TOML, YAML, HCL, and Java properties config files
  • live watching and re-reading of config files (optional)
  • reading from environment variables
  • reading from remote config systems (etcd or Consul), and watching changes
  • reading from command line flags
  • reading from buffer
  • setting explicit values

As added bonus, Viper has the ability to bind to flags. Specifically, Viper supports Pflags as used in the Cobra library.

kenjones-cisco avatar Dec 04 '18 17:12 kenjones-cisco

Yes, I know of it :) FYI I will not implement it in boilr, but if I choose to use cobra I will probably use Viper as well in my rewrite here: stancr

Ilyes512 avatar Dec 04 '18 21:12 Ilyes512