Skip to content

Commit

Permalink
removing deprecated setting
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Apr 13, 2021
1 parent 5a28131 commit 05808e1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pkg/config/cliConfiguration.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ const (
// SettingsSilentStatusCodes Status codes which will not print out an error message
SettingsSilentStatusCodes = "settings.defaults.silentStatusCodes"

// SettingsUseEnvironment Read session authentication from environment variables instead of from configuration
SettingsUseEnvironment = "settings.defaults.useEnv"

// SettingsSessionFile Session file to use for api authentication
SettingsSessionFile = "settings.defaults.session"

Expand Down Expand Up @@ -1158,12 +1155,6 @@ func (c *Config) GetOutputCommonOptions(cmd *cobra.Command) (CommonCommandOption
return options, nil
}

// UseEnvironment Read session authentication from environment variables instead of from configuration
// Use environment will be true if explicitly activated or if there is no session file being used.
func (c *Config) UseEnvironment() bool {
return strings.TrimSpace(c.GetSessionFile()) == "" || c.viper.GetBool(SettingsUseEnvironment)
}

// AllSettings get all the settings as a map
func (c *Config) AllSettings() map[string]interface{} {
return c.viper.AllSettings()
Expand Down

0 comments on commit 05808e1

Please sign in to comment.