Skip to content

Commit

Permalink
chore: replace all description prop to desc
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Dec 25, 2021
1 parent 6a4b640 commit ef50e5c
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/Command/CorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CorCommand extends Command
{
protected static string $name = 'cor';

protected static string $description = 'a coroutine test command';
protected static string $desc = 'a coroutine test command';

protected static bool $coroutine = true;

Expand Down
3 changes: 1 addition & 2 deletions examples/Command/DemoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ class DemoCommand extends Command
{
protected static string $name = 'demo';

protected static string $description = 'this is a demo alone command. but use Definition instead of annotations';
protected static string $desc = 'this is a demo alone command. but use Definition instead of annotations';

/**
* {@inheritDoc}
* @throws LogicException
*/
protected function configure(): void
{
Expand Down
4 changes: 2 additions & 2 deletions examples/Command/TestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class TestCommand extends Command
{
protected static string $name = 'test';

protected static string $description = 'this is a test independent command';
protected static string $desc = 'this is a test independent command';

protected function commands(): array
{
return [
'sub' => static function ($in, $out): void {
'sub' => static function ($fs, $out): void {
$out->println('hello, this is an sub command of test.');
},
];
Expand Down
2 changes: 1 addition & 1 deletion examples/Controller/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class HomeController extends Controller
{
protected static string $name = 'home';

protected static string $description = 'This is a demo command controller. there are some command usage examples(2)';
protected static string $desc = 'This is a demo command controller. there are some command usage examples(2)';

public static function aliases(): array
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Controller/InteractController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class InteractController extends Controller
{
protected static string $name = 'interact';

protected static string $description = 'there are some demo commands for use interactive method';
protected static string $desc = 'there are some demo commands for use interactive method';

public static function aliases(): array
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Controller/ProcessController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ProcessController extends Controller
{
protected static string $name = 'process';

protected static string $description = 'Some simple process to create and use examples';
protected static string $desc = 'Some simple process to create and use examples';

protected static function commandAliases(): array
{
Expand Down
2 changes: 1 addition & 1 deletion examples/Controller/ShowController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ShowController extends Controller
{
protected static string $name = 'show';

protected static string $description = 'there are some demo commands for show format data';
protected static string $desc = 'there are some demo commands for show format data';

public static function commandAliases(): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/BuiltIn/DevServerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class DevServerCommand extends Command
{
protected static string $name = 'dev:server';

protected static string $description = 'Start a php built-in http server for development';
protected static string $desc = 'Start a php built-in http server for development';

public static function aliases(): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/BuiltIn/PharController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PharController extends Controller
{
protected static string $name = 'phar';

protected static string $description = 'Pack a project directory to phar or unpack phar to directory';
protected static string $desc = 'Pack a project directory to phar or unpack phar to directory';

/**
* @var Closure|null
Expand Down
2 changes: 1 addition & 1 deletion src/BuiltIn/SelfUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class SelfUpdateCommand extends Command

protected static string $name = 'self-update';

protected static string $description = 'Update phar package to most recent stable, pre-release or development build.';
protected static string $desc = 'Update phar package to most recent stable, pre-release or development build.';

/**
* @var string
Expand Down

0 comments on commit ef50e5c

Please sign in to comment.