Nested subcommands support
See original GitHub issueWondering if it’s possible to support nested subcommands. Having a quick skim over the documentation and code and it doesn’t seem currently possible unless I missed something.
For example
./foo [subcommand] [nested subcommand] [arguments]
./foo [subcommand] [nested subcommand] [nested subcommand] [arguments]
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How should I implement "nested" subcommands in Python?
I'm trying to implement a commandline tool using cmdln that allows for "nested" subcommands. Here is a real world example: git svn rebase....
Read more >Nested SubCommands - Typer
Typer, build great CLIs. Easy to code. Based on Python type hints.
Read more >Nested subcommands in Rest with clap
An example of how to create nasted sub commands in a Rust CLI app using clap. Tagged with rust, cli, clap.
Read more >CLI with nested sub-commands and tab completion : r/rust
Yes, clap integrated structopt and supports nested subcommands. Structopt only works with clap v2 libraries and clap_complete only works with ...
Read more >Consider adding support for nested commands or ...
I've come up with a system that allows you to nest Cmd classes within each other. The top level (root) command then handles...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Cocona now supports nested sub-command. https://github.com/mayuki/Cocona#nested-sub-commands https://github.com/mayuki/Cocona/releases/tag/v1.3.0
Please feel free to send me feedback!
@mayuki The use case is basically what you just explained above. I want to convert a bunch of internal tools my company uses under one interface which will require the use of nested sub commands.