Skip to content

[SUGGESTION] Have a root command #14

@gcarreno

Description

@gcarreno

Hey Ikel(@ikelaiah),

Apologies in advance for being such a pest!! 🤗

From my experience it looks like you decided that you would force the need to always have a command.
I'll always compare this to cobra, because for me, it's the golden standard...

So, in cobra you have the rootCmd. This does not imply it has a name. I would, kinda, compare it to what you know are calling the Application.

The effect is that if you only have the root command, and it's always mandatory that you have one, then you can do an app without forcing the need to always have a named on.
This allows one to create a simple but command-less app, if one so chooses.

You could make the Application be a bit more like a command... But I'm not sure if this is even a good idea!!

Not sure if this is more of a pain than anything. Please give me your input on this.

Also, I just noticed that you can't do subcommands... Would that also be a major pain?

Cheers,
Gus

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions