Let's use Viper to manage configuration, enabling users to set non-command-line flags via environment variables. This will let us get away from relying on a config.json file that's sitting somewhere on disk.
Some good documentation on using Cobra and Viper together:
Let's use Viper to manage configuration, enabling users to set non-command-line flags via environment variables. This will let us get away from relying on a config.json file that's sitting somewhere on disk.
Some good documentation on using Cobra and Viper together:
https://medium.com/@skdomino/writing-better-clis-one-snake-at-a-time-d22e50e60056