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

Common options for CLI commands #75

Open
x00Pavel opened this issue Jun 13, 2022 · 0 comments
Open

Common options for CLI commands #75

x00Pavel opened this issue Jun 13, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request investigation Needs more investigation

Comments

@x00Pavel
Copy link
Member

Problem statement:

Each CLI command needs a configuration file for taking values from it. Solution via specifying @click.option decorator for each subcommand in a group seems to be not very clear, and maybe there is a better way to do such thing.

Task:

Investigate possibilities of python click module to make groups of commands with some shared options.
If support for such a feature is not very nice, look for another solution to this problem.

Expected result:

All subcommands would obtain the configuration file via the same source/context without specifying this as an option for each subcommand.

@x00Pavel x00Pavel added enhancement New feature or request investigation Needs more investigation labels Jun 13, 2022
@x00Pavel x00Pavel self-assigned this Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request investigation Needs more investigation
Projects
None yet
Development

No branches or pull requests

1 participant