Created
April 13, 2024 13:20
-
-
Save pkoch/5f41f25e89e7d321b0e345a907cb9fd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cmd/kwil-cli/config/flags.go b/cmd/kwil-cli/config/flags.go | |
index 6eb64970..2a8a9732 100644 | |
--- a/cmd/kwil-cli/config/flags.go | |
+++ b/cmd/kwil-cli/config/flags.go | |
@@ -46,6 +46,11 @@ func init() { | |
configPath := filepath.Join(dirname, defaultConfigDirName) | |
DefaultConfigDir = configPath | |
defaultConfigFile = filepath.Join(configPath, defaultConfigFileName) | |
+ | |
+ configFile, present := os.LookupEnv("KWIL_CLI_CONFIG_FILE") | |
+ if !present { | |
+ defaultConfigFile = configFile | |
+ } | |
} | |
func BindGlobalFlags(fs *pflag.FlagSet) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment