Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit 05496ca

Browse files
committed
🐛 Fixed command descriptions not showing
1 parent e9dd72a commit 05496ca

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

App/Console/ExampleCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<?php
2+
23
namespace App\Console;
34

45
use Aloe\Command;
56

67
class ExampleCommand extends Command
78
{
8-
public $name = "example";
9+
protected static $defaultName = "example";
910
public $description = "example command's description";
1011
public $help = "example command's help";
1112

12-
public function config()
13+
protected function config()
1314
{
14-
// you can add arguments and options in the config method
1515
$this
16-
->setArgument("argument", "required", "argument description")
16+
->setArgument("argument", "optional", "argument description")
1717
->setOption("option", "o", "required", "option description");
1818
}
1919

20-
public function handle()
20+
protected function handle()
2121
{
2222
$this->comment(
2323
"example command's output {$this->argument('argument')} {$this->option('option')}"

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
}
2020
],
2121
"require": {
22-
"leafs/leaf": "^2.4.1",
23-
"leafs/aloe": "^1.0",
22+
"leafs/leaf": "^2.4.2-beta",
23+
"leafs/aloe": "^1.1.0-beta",
2424
"doctrine/dbal": "^2.9",
25-
"illuminate/console": "^6.3",
25+
"illuminate/console": "^8.0",
2626
"psy/psysh": "^0.9.9",
27-
"symfony/console": "^4.3",
27+
"symfony/console": "^5.1",
2828
"vlucas/phpdotenv": "^3.6"
2929
},
3030
"require-dev": {

0 commit comments

Comments
 (0)