lavalamp- / ipv666

Golang IPv6 address enumeration
BSD 2-Clause "Simplified" License
355 stars 50 forks source link

Use Viper instead of config.json #83

Closed lavalamp- closed 5 years ago

lavalamp- commented 5 years ago

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

lavalamp- commented 5 years ago

https://github.com/lavalamp-/ipv666/commit/13fc462078b96dca1021477b1642681af6f7b3b3