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? #22

Open
johnSchnake opened this issue Mar 16, 2022 · 6 comments
Open

Comments

@johnSchnake
Copy link
Collaborator

Moving from spf13/cobra#1381

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 -p 'subcommandCmd' .

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

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

@github-actions
Copy link

github-actions bot commented Jun 1, 2023

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

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