Skip to content

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

@Snehil-Shah

Description

@Snehil-Shah

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions