-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Adding ability to add nested commands through cobra add
#273
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Modified `cobra add` command to be able to parse argument into nested command structure * Modified `createCmdFile` function to accept cmdPath * Modified cmdFile template to specify package name and to TitleCase command names so that they can be accessed by child packages. * Simplified `writeTemplateToFile` function so that just the file path is passed instead of base path and filename.
Not sure why this is failing with go 1.3.3 all of a sudden but it also failed in #271 so I don't think it is specific to my changes! |
Any idea when this will be merged? I think it's exactly what I need for a project right now... |
I need this too :). Looks dormant. |
Any thoughts on when this might be merged? |
I'll leave it for @spf13 I've never even looked at the code under |
n10v
added
area/cobra-command
Core `cobra.Command` implementations
kind/feature
A feature request for cobra; new or enhanced behavior
labels
May 5, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/cobra-command
Core `cobra.Command` implementations
kind/feature
A feature request for cobra; new or enhanced behavior
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
cobra add
command to be able to parse argument into nested command structure (Ability to add nested commands throughcobra add
#266)createCmdFile
function to accept cmdPathwriteTemplateToFile
function syntax.