Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: reorder config priority #1132

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

jchappelow
Copy link
Member

Neglected to push this yesterday.

For kwil-cli, this reorders the priority of config:

  1. env
  2. flags
  3. config file (config.json)

This PR also makes it an error condition if the config file was specified (--config/-c) but it does not exists. It is only not an error if it was not specified.

@charithabandi charithabandi merged commit 79a23f4 into kwilteam:main Dec 9, 2024
2 checks passed
@jchappelow jchappelow deleted the fix-cli-flags branch December 9, 2024 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants