Description
Describe your use case
I would like to re-write an existing internal Python tool in rust. For this python tool we use click with the command chaining feature (https://click.palletsprojects.com/en/7.x/commands/#multi-command-chaining) this allows similar to some bigger CLI tools (e.g. gradle
or setup.py
) to execute multiple commands in one go. In our example we have a simple build and deploy tool and people often call it ether via ./tool build start
or via ./tool start logs
etc to trigger different functionality in one go. Where build
would build our system; start
would startup the code locally and logs
would tail the logs.
Describe the solution you'd like
A simple switch that allows me to enable command chaining. I am ok with that prevents me from using sub commands and instead I can only use one level of commands. Examples of implementations are: