Skip to content

Commit 928bfd3

Browse files
committed
docs: replace deprecated command in examples
1 parent 1973c35 commit 928bfd3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

user_guide_src/source/cli/cli_commands.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ and must extend ``CodeIgniter\CLI\BaseCommand``, and implement the ``run()`` met
2222
The following properties should be used in order to get listed in CLI commands and to add help functionality to your command:
2323

2424
* ``$group``: a string to describe the group the command is lumped under when listing commands. For example: ``Database``
25-
* ``$name``: a string to describe the command's name. For example: ``migrate:create``
26-
* ``$description``: a string to describe the command. For example: ``Creates a new migration file.``
27-
* ``$usage``: a string to describe the command usage. For example: ``migrate:create [name] [options]``
28-
* ``$arguments``: an array of strings to describe each command argument. For example: ``'name' => 'The migration file name'``
29-
* ``$options``: an array of strings to describe each command option. For example: ``'-n' => 'Set migration namespace'``
25+
* ``$name``: a string to describe the command's name. For example: ``make:controller``
26+
* ``$description``: a string to describe the command. For example: ``Generates a new controller file.``
27+
* ``$usage``: a string to describe the command usage. For example: ``make:controller <name> [options]``
28+
* ``$arguments``: an array of strings to describe each command argument. For example: ``'name' => 'The controller class name.'``
29+
* ``$options``: an array of strings to describe each command option. For example: ``'--force' => 'Force overwrite existing file.'``
3030

3131
**Help description will be automatically generated according to the above parameters.**
3232

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
echo command('migrate:create TestMigration');
3+
echo command('make:migration TestMigration');

0 commit comments

Comments
 (0)