Skip to content

Navigation Menu

Sign in
Appearance settings

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

Commit 0f6ce75

Browse filesBrowse files
Allow command description to be dynamically set depending on what name is given to the command (#8)
Co-authored-by: jonnywilliamson <jonnywilliamson@users.noreply.github.com>
1 parent b81033a commit 0f6ce75
Copy full SHA for 0f6ce75

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/Console/Command/CommandListCommand.php

Copy file name to clipboardExpand all lines: src/Console/Command/CommandListCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected function getCommandsList(): array
4646

4747
return collect($handler->getCommands())
4848
->map(
49-
fn ($command, $name): array => [$name, $handler->getCommandBus()->resolveCommand($command)->getDescription()]
49+
fn ($command, $name): array => [$name, $handler->getCommandBus()->resolveCommand($command)->setName($name)->getDescription()]
5050
)->all();
5151
}
5252
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.