File tree 3 files changed +5
-5
lines changed
system/Commands/Generators
user_guide_src/source/cli
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class CommandGenerator extends BaseCommand
67
67
protected $ options = [
68
68
'--command ' => 'The command name. Default: "command:name" ' ,
69
69
'--type ' => 'The command type. Options [basic, generator]. Default: "basic". ' ,
70
- '--group ' => 'The command group. Default: [basic -> "CodeIgniter ", generator -> "Generators"]. ' ,
70
+ '--group ' => 'The command group. Default: [basic -> "App ", generator -> "Generators"]. ' ,
71
71
'--namespace ' => 'Set root namespace. Default: "APP_NAMESPACE". ' ,
72
72
'--suffix ' => 'Append the component title to the class name (e.g. User => UserCommand). ' ,
73
73
'--force ' => 'Force overwrite existing file. ' ,
@@ -106,7 +106,7 @@ protected function prepare(string $class): string
106
106
}
107
107
108
108
if (! is_string ($ group )) {
109
- $ group = $ type === 'generator ' ? 'Generators ' : 'CodeIgniter ' ;
109
+ $ group = $ type === 'generator ' ? 'Generators ' : 'App ' ;
110
110
}
111
111
112
112
return $ this ->parseTemplate (
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function testGenerateCommand(): void
52
52
$ file = APPPATH . 'Commands/Deliver.php ' ;
53
53
$ this ->assertFileExists ($ file );
54
54
$ contents = $ this ->getFileContents ($ file );
55
- $ this ->assertStringContainsString ('protected $group = \'CodeIgniter \'; ' , $ contents );
55
+ $ this ->assertStringContainsString ('protected $group = \'App \'; ' , $ contents );
56
56
$ this ->assertStringContainsString ('protected $name = \'command:name \'; ' , $ contents );
57
57
}
58
58
@@ -72,7 +72,7 @@ public function testGenerateCommandWithOptionTypeBasic(): void
72
72
$ file = APPPATH . 'Commands/Deliver.php ' ;
73
73
$ this ->assertFileExists ($ file );
74
74
$ contents = $ this ->getFileContents ($ file );
75
- $ this ->assertStringContainsString ('protected $group = \'CodeIgniter \'; ' , $ contents );
75
+ $ this ->assertStringContainsString ('protected $group = \'App \'; ' , $ contents );
76
76
$ this ->assertStringContainsString ('protected $name = \'command:name \'; ' , $ contents );
77
77
}
78
78
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ Argument:
86
86
Options:
87
87
========
88
88
* ``--command ``: The command name to run in spark. Defaults to ``command:name ``.
89
- * ``--group ``: The group/namespace of the command. Defaults to ``CodeIgniter `` for basic commands, and ``Generators `` for generator commands.
89
+ * ``--group ``: The group/namespace of the command. Defaults to ``App `` for basic commands, and ``Generators `` for generator commands.
90
90
* ``--type ``: The type of command, whether a ``basic `` command or a ``generator `` command. Defaults to ``basic ``.
91
91
* ``--namespace ``: Set the root namespace. Defaults to value of ``APP_NAMESPACE ``.
92
92
* ``--suffix ``: Append the component suffix to the generated class name.
You can’t perform that action at this time.
0 commit comments