Skip to content

Commit

Permalink
Fixed Cobra not pulling environment variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
kyallanum committed Dec 31, 2023
1 parent 6984963 commit 1f53304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ func Execute() error {
}

func init() {
rootCmd.Flags().StringVarP(&configFile, "config", "c", os.Getenv(""), "")
rootCmd.Flags().StringVarP(&logFile, "log-file", "l", os.Getenv(""), "")
rootCmd.Flags().StringVarP(&configFile, "config", "c", os.Getenv("ATHENA_CONFIG_FILE"), "")
rootCmd.Flags().StringVarP(&logFile, "log-file", "l", os.Getenv("ATHENA_LOG_FILE"), "")
}

func resolveLogFile(contents *logs.LogFile, configuration *config.Configuration) (*library.Library, error) {
Expand Down

0 comments on commit 1f53304

Please sign in to comment.