Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: abscissa new generates subcommands under existing commands #625

Open
cbrit opened this issue Jan 9, 2022 · 1 comment

Comments

@cbrit
Copy link

cbrit commented Jan 9, 2022

It would be really great if abscissa gen allowed you to add subcommands underneath existing commands. For example, say I have a abscissa cli cli with command cmd,

// in cli project root
abscissa gen cmd --subcommands=[subcmd1, subcmd2, subcmd3]

would result in code generated

src/
    // snip
    commands/
        cmd/
             subcmd1.rs
             subcmd2.rs
             subcmd3.rs
        cmd.rs
    commands.rs
    // snip

Implicitly this shouldn't overwrite cmd.rs if it already exists.

@hannydevelop
Copy link
Contributor

Although there's no command to generate subcommands in Abscissa, you can create subcommands and nested subcommands manually in your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants