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.
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.