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

Recursive commands #74

Closed
rahul0x24 opened this issue Sep 16, 2016 · 2 comments
Closed

Recursive commands #74

rahul0x24 opened this issue Sep 16, 2016 · 2 comments

Comments

@rahul0x24
Copy link

rahul0x24 commented Sep 16, 2016

Is it possible to create recursive commands like below ?

Carthage iOS update
Carthage iOS bootstrap
Carthage Mac bootstrap
Carthage Mac update

or are you considering this in future release ?

What I am really trying to do is that I have 2 command line applications suppose iOS and Mac and I am making a super command line application with my name rahulkatariya so that I can use the following commands

rahulkatariya ios <subcommand> <arguments>
rahulkatariya mac <subcommand> <arguments>

@mdiep
Copy link
Member

mdiep commented Sep 16, 2016

That's not currently possible, no.

@rahul0x24
Copy link
Author

rahul0x24 commented Sep 16, 2016

A workaround I saw is to use command redundantly with the subcommand like

verb = "iOS"
verb = "iOS update"
verb = "iOS bootstrap"

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