From 541f1c1d866088f9a259833f4164344f9cbd00aa Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 30 Oct 2023 15:42:09 -0400 Subject: [PATCH] update env vars --- sheller/config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sheller/config.go b/sheller/config.go index f47b368..4214ddf 100644 --- a/sheller/config.go +++ b/sheller/config.go @@ -53,19 +53,19 @@ func NewConfigWithDefaults() *Config { // LoadConfigFromEnv loads configuration options from environment variables. // It updates the provided config object with values from the environment. func LoadConfigFromEnv(config *Config) { - cliPath := os.Getenv("SHELLER_CLI_PATH") + cliPath := os.Getenv("AKEYLESS_SHELLER_CLI_PATH") if cliPath != "" { config.CLIPath = cliPath } - profile := os.Getenv("SHELLER_PROFILE") + profile := os.Getenv("AKEYLESS_SHELLER_PROFILE") if profile != "" { config.Profile = profile } - akeylessPath := os.Getenv("SHELLER_AKEYLESS_HOME_DIRECTORY_PATH") + akeylessPath := os.Getenv("AKEYLESS_SHELLER_HOME_DIRECTORY_PATH") if akeylessPath != "" { config.AkeylessPath = akeylessPath } - expiryBufferStr := os.Getenv("SHELLER_EXPIRY_BUFFER") + expiryBufferStr := os.Getenv("AKEYLESS_SHELLER_EXPIRY_BUFFER") if expiryBufferStr != "" { expiryBuffer, err := time.ParseDuration(expiryBufferStr) if err == nil { @@ -76,7 +76,7 @@ func LoadConfigFromEnv(config *Config) { config.ExpiryBuffer = DEFAULT_EXPIRY_BUFFER } - debugStr := os.Getenv("SHELLER_DEBUG") + debugStr := os.Getenv("AKEYLESS_SHELLER_DEBUG") if debugStr != "" { config.Debug = true }