@@ -27,24 +27,30 @@ import (
27
27
28
28
var (
29
29
composerWrapper = & console.Command {
30
- Name : "composer" ,
31
30
Usage : "Runs Composer without memory limit" ,
32
31
Hidden : console .Hide ,
32
+ // we use an alias to avoid the command being shown in the help but
33
+ // still be available for completion
34
+ Aliases : []* console.Alias {{Name : "composer" }},
33
35
Action : func (c * console.Context ) error {
34
36
return console.IncorrectUsageError {ParentError : errors .New (`This command can only be run as "symfony composer"` )}
35
37
},
36
38
}
37
39
binConsoleWrapper = & console.Command {
38
- Name : "console" ,
39
40
Usage : "Runs the Symfony Console (bin/console) for current project" ,
40
41
Hidden : console .Hide ,
42
+ // we use an alias to avoid the command being shown in the help but
43
+ // still be available for completion
44
+ Aliases : []* console.Alias {{Name : "console" }},
41
45
Action : func (c * console.Context ) error {
42
46
return console.IncorrectUsageError {ParentError : errors .New (`This command can only be run as "symfony console"` )}
43
47
},
44
48
}
45
49
phpWrapper = & console.Command {
46
50
Usage : "Runs the named binary using the configured PHP version" ,
47
51
Hidden : console .Hide ,
52
+ // we use aliases to avoid the command being shown in the help but
53
+ // still be available for completion
48
54
Aliases : func () []* console.Alias {
49
55
binNames := php .GetBinaryNames ()
50
56
aliases := make ([]* console.Alias , 0 , len (binNames ))
0 commit comments