spf13/cobra-cli

Adding commands with hyphens (-) in the name

Opened this issue · 0 comments

I understand the filename is being camel-cased for a reason, 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!