question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested subcommands support

See original GitHub issue

Wondering 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mayukicommented, Feb 10, 2020

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!

0reactions
benjirocommented, Feb 2, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found