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

Adding commands with hyphens (-) in the name #107

Open
Snehil-Shah opened this issue Dec 20, 2023 · 0 comments
Open

Adding commands with hyphens (-) in the name #107

Snehil-Shah opened this issue Dec 20, 2023 · 0 comments

Comments

@Snehil-Shah
Copy link

I understand the filename is being camel-cased due to some technical reasons, but can't the command name still have the hyphen in the name??

cobra-cli add hello-world, makes the file named helloWorld
Manually changing the Use parameter to hello-world does change the command name to hello-world and works as intended without creating any issues with the file names..
image

Can we modify the command add to include the hyphen in the Use parameter and camel-case it everywhere else as usual? That will prevent users from manually changing the Use parameter and the add command will work as intended!

If this issue will be entertained, I would love to contribute as well!

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

1 participant