Skip to content

Commit

Permalink
Add TL_CLI_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-kabala committed Jul 31, 2024
1 parent f00a4d2 commit c741b21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ func Execute() {
}

func initConfig() {
cfgFileFromEnv := os.Getenv("TL_CLI_CONFIG_FILE")
if cfgFile == "" && cfgFileFromEnv != "" {
cfgFile = cfgFileFromEnv
}
err := config.InitConfig(cfgFile)
cobra.CheckErr(err)
}

0 comments on commit c741b21

Please sign in to comment.