You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
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:
Issue by fkrauthan
Tuesday Nov 24, 2020 at 18:04 GMT
Originally opened as clap-rs/clap#2222
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
orsetup.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. Wherebuild
would build our system;start
would startup the code locally andlogs
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:
The text was updated successfully, but these errors were encountered: