Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Different command / sub-command syntax possible? #469

jamsouf started this conversation in General
Discussion options

Let's say I want to define multiple commands under the same namespace, e.g.
servers list, servers create and servers retrieve.

The default way in Laravel (Zero) would be to have the following signatures:
servers:list, servers:create and servers:retrieve

I personally find it more elegant to use the commands in the console with servers list instead of servers:list, just like the Stripe CLI or the GitHub CLI for example do.

Is it possible to achieve such a syntax?

You must be logged in to vote

Replies: 1 comment

Comment options

I don't think this is possible. Behind the scenes, Laravel and Laravel Zero use Symfony Console, and it doesn't seem to support this.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.