mirror of
https://github.com/LukeHagar/sailpoint-cli.git
synced 2025-12-07 20:57:46 +00:00
Changed the configuration to follow the new sail command
This commit is contained in:
5
main.go
5
main.go
@@ -20,10 +20,11 @@ func initConfig() {
|
||||
home, err := os.UserHomeDir()
|
||||
cobra.CheckErr(err)
|
||||
|
||||
viper.AddConfigPath(filepath.Join(home, ".sp"))
|
||||
viper.AddConfigPath(filepath.Join(home, ".sailpoint"))
|
||||
viper.SetConfigName("config")
|
||||
viper.SetConfigType("yaml")
|
||||
viper.SetEnvPrefix("SP_CLI")
|
||||
viper.SetEnvPrefix("sail")
|
||||
|
||||
viper.AutomaticEnv()
|
||||
|
||||
if err := viper.ReadInConfig(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user