We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7953a60 commit 72f9c0cCopy full SHA for 72f9c0c
src/BuiltIn/GenController.php
@@ -19,6 +19,13 @@ class GenController extends Controller
19
protected static $name = 'gen';
20
protected static $description = 'generate code template file tool.';
21
22
+ protected static function commandAliases()
23
+ {
24
+ return [
25
+ 'ac' => 'autoComplete'
26
+ ];
27
+ }
28
+
29
/**
30
* generate a alone console command class
31
*/
@@ -34,4 +41,14 @@ public function groupCommand()
34
41
{
35
42
36
43
}
44
45
+ /**
46
+ * generate a bash/zsh auto-completion script file for current application.
47
+ * @options
48
+ * --env linux shell env name. allow: bash,zsh
49
+ */
50
+ public function autoCompleteCommand()
51
52
53
37
54
src/BuiltIn/Resources/templates/alone-command.tpl
src/BuiltIn/Resources/templates/group-commands.tpl
0 commit comments