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

Can the cobra CLI be changed to specify file name & variable name? #1381

Closed
benlei-gfm opened this issue Apr 21, 2021 · 2 comments
Closed

Can the cobra CLI be changed to specify file name & variable name? #1381

benlei-gfm opened this issue Apr 21, 2021 · 2 comments

Comments

@benlei-gfm
Copy link

benlei-gfm commented Apr 21, 2021

For example:

cobra add foo--bar--baz --var-name=foo_bar_bazCmd -p 'parentCmd'
// generates cmd/foo--bar--baz.go

Similarly, it'd be nice if I can run the cobra command in the current directory instead of the root repo directory, for example like:

~/workspace/my-cli/cmd/subcommand $ cobra add <subcommand> -p 'subcommandCmd' .
@github-actions
Copy link

This issue is being marked as stale due to a long period of inactivity

@johnSchnake
Copy link
Collaborator

This is for the CLI which as moved. Reopening the issue there.

This issue was closed.
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