Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Print commands by group #23

Merged

Conversation

KevSlashNull
Copy link
Contributor

@KevSlashNull KevSlashNull commented Feb 13, 2022

Similar to Laravel, command signatures in Confetti use a colon to denote
that a command is a logical part of a group. For example, both app:info
and app:serve use the app: namespace. Two commands share a group if
they have the same top-level namespace, i.e. until the first colon.

Laravel’s Artisan visualizes these groups when executing
php artisan tinker by printing a header per group and listing all
commands (indented by a single space) below it.

This aims to provide a similar visual categorization to developers by
printing commands per group.

Before After Laravel inspiration
image image image

Similar to Laravel, command signatures in Confetti use a colon to denote
that a command is a logical part of a group. For example, both app:info
and app:serve use the `app:` namespace. Two commands share a group if
they have the same top-level namespace, i.e. until the first colon.

Laravel’s Artisan visualizes these groups when executing `php artisan
tinker` by printing a header per group and listing all commands
(indented by a single space) below it.

This aims to provide a similar visual categorization to developers by
printing commands per group.
@reindert-vetter
Copy link
Contributor

I love it

@reindert-vetter reindert-vetter merged commit 82abe8e into confetti-framework:main Feb 13, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants