@@ -138,6 +138,9 @@ func parseCommands(home string) (string, error) {
138
138
if command .Name == "list" || command .Name == "help" {
139
139
continue
140
140
}
141
+ if command .Name == "self:stats" {
142
+ continue
143
+ }
141
144
if strings .HasPrefix (command .Name , "self:" ) {
142
145
command .Hidden = true
143
146
}
@@ -155,13 +158,15 @@ func parseCommands(home string) (string, error) {
155
158
}
156
159
name := strings .TrimPrefix ("cloud:" + command .Name , namespace + ":" )
157
160
aliases := []string {}
158
- if namespace != "cloud" {
161
+ if namespace != "cloud" && ! strings . HasPrefix ( command . Name , "self:" ) {
159
162
aliases = append (aliases , fmt .Sprintf ("{Name: \" %s\" , Hidden: true}" , command .Name ))
160
163
}
161
164
for _ , usage := range command .Usage {
162
165
if allCommandNames [usage ] {
163
166
aliases = append (aliases , fmt .Sprintf ("{Name: \" cloud:%s\" }" , usage ))
164
- aliases = append (aliases , fmt .Sprintf ("{Name: \" %s\" , Hidden: true}" , usage ))
167
+ if namespace != "cloud" && ! strings .HasPrefix (command .Name , "self:" ) {
168
+ aliases = append (aliases , fmt .Sprintf ("{Name: \" %s\" , Hidden: true}" , usage ))
169
+ }
165
170
}
166
171
}
167
172
if command .Name == "environment:push" {
0 commit comments