Skip to content

Commit

Permalink
Remove some cloud:* commands
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Feb 20, 2022
1 parent 00cbca0 commit 14e85e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 95 deletions.
93 changes: 0 additions & 93 deletions local/platformsh/commands.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions local/platformsh/generator/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,22 @@ func parseCommands(home string) (string, error) {
// FIXME: missing the aliases here
}

excludedCommands := map[string]bool{
"list": true,
"help": true,
"self:stats": true,
"decode": true,
"environment:drush": true,
}
definitionAsString := ""
for _, command := range definition.Commands {
if strings.Contains(command.Description, "deprecated") || strings.Contains(command.Description, "DEPRECATED") {
continue
}
if command.Name == "list" || command.Name == "help" {
if _, ok := excludedCommands[command.Name]; ok {
continue
}
if command.Name == "self:stats" {
if strings.HasPrefix(command.Name, "local:") {
continue
}
if strings.HasPrefix(command.Name, "self:") {
Expand Down

0 comments on commit 14e85e7

Please sign in to comment.