Skip to content
Advertisement

Tag: python-click

Click (Meta) Command to run a list of commands

I need to be able to trigger multiple click commands from one command on the CLI Let’s say I have a click group What functionality should I add to run an ordered list of the commands like the following? The goal is that there are shared variables which get initialized for each of my commands. The init is expensive and

Global options for python-click MultiCommand

I’m implementing a classical CLI toolbox with python and I selected click as my argument parser. Adding a command should just be adding a file. From there the command is listed in the help and so on. This part is working through a click MultiCommand. What I didn’t achieve yet are global options like loglevel or configfile. I don’t want

Advertisement