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

Support click's auto_envvar_prefix #553

Closed
nathanakk opened this issue Oct 25, 2024 · 1 comment
Closed

Support click's auto_envvar_prefix #553

nathanakk opened this issue Oct 25, 2024 · 1 comment

Comments

@nathanakk
Copy link

nathanakk commented Oct 25, 2024

Is your feature request related to a problem? Please describe.
Flask's cli support using FLASK_COMMAND_OPTION environment variables to auto-populate cli arguments/options. (here)
For me, I have to type -d [directory] every time and an option to just use envvar FLASK_DB_RUN_DIRECTORY seems so much better.

Additionally, since -d [directory] is an option for all cli, this can be moved to an option for db group to allow flexibility of flask db -d [directory] [command].

Describe the solution you'd like
Add support for click's auto_envvar_prefix.

@miguelgrinberg
Copy link
Owner

Could I ask you to try the main branch of the project and confirm that this is working? The variable you need to use for the directory is FLASK_DB_DIRECTORY.

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

No branches or pull requests

2 participants