Description: User will need to install my utility and run two different commands from it: command_1 and command_2
for this in setup.py I used this syntax:
entry_points={
'console_scripts': [
'command_1 = src.cli:function_command_1',
'command_2 = src.cli:function_command_2',
]
after user execute: pip install my_module
he can use two separate commands in comand line;
for example User can run:
command_1 --parameter_1='p1' --parameter_2='p2'
Problem:
What if my module executes several commands, not a single one? For example:
my_module command_1 --parameter_1='p1' --parameter_2='p2'
my_module command_2 --parameter_1='p3' --parameter_2='p4'
...
my_module command_15 --parameter_1='p15'
There is a solution to use click to have different single commands for app: How can I split my Click commands, each with a set of sub-commands, into multiple files?
did anyone had a similar challenge, if no, any advice?
Thanks to everyone in advance