cobra-cli icon indicating copy to clipboard operation
cobra-cli copied to clipboard

Adding commands with hyphens (-) in the name

Open Snehil-Shah opened this issue 1 year ago • 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!

Snehil-Shah avatar Dec 20 '23 16:12 Snehil-Shah