Open darron opened 8 years ago
These could be simplified by moving them into constants and using Viper to load as needed.
Kind of like I've done here:
https://github.com/octohost/octo/blob/master/cmd/consul.go#L13-L34
Would also have to refactor LoadConfig() - but that wouldn't be a problem.
These could be simplified by moving them into constants and using Viper to load as needed.
Kind of like I've done here:
https://github.com/octohost/octo/blob/master/cmd/consul.go#L13-L34
Would also have to refactor LoadConfig() - but that wouldn't be a problem.