Changed the configuration to follow the new sail command

This commit is contained in:
colin-mckibben-sp
2022-09-30 14:24:19 -04:00
parent ad6cb60227
commit b014ca0eec
4 changed files with 47 additions and 30 deletions

View File

@@ -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 {