|
|
@ -6,6 +6,7 @@ import (
|
|
|
|
"github.com/spf13/viper"
|
|
|
|
"github.com/spf13/viper"
|
|
|
|
"log"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// When initializing this class the following methods must be called:
|
|
|
|
// When initializing this class the following methods must be called:
|
|
|
@ -64,6 +65,11 @@ func (c *configuration) Init() error {
|
|
|
|
//c.SetConfigName("drawbridge")
|
|
|
|
//c.SetConfigName("drawbridge")
|
|
|
|
//c.AddConfigPath("$HOME/")
|
|
|
|
//c.AddConfigPath("$HOME/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//configure env variable parsing.
|
|
|
|
|
|
|
|
c.SetEnvPrefix("SCRUTINY")
|
|
|
|
|
|
|
|
c.SetEnvKeyReplacer(strings.NewReplacer("-", "_", ".", "_"))
|
|
|
|
|
|
|
|
c.AutomaticEnv()
|
|
|
|
|
|
|
|
|
|
|
|
//CLI options will be added via the `Set()` function
|
|
|
|
//CLI options will be added via the `Set()` function
|
|
|
|
return nil
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|