Skip to content

Commit

Permalink
pkg/cli/init.go: sort available plugins and project versions in flag …
Browse files Browse the repository at this point in the history
…help
  • Loading branch information
estroz committed Jun 17, 2020
1 parent 9aa6ab6 commit 9931438
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cli/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"
"log"
"os"
"sort"
"strconv"
"strings"

Expand Down Expand Up @@ -100,6 +101,7 @@ func (c cli) getAvailableProjectVersions() (projectVersions []string) {
for version := range versionSet {
projectVersions = append(projectVersions, strconv.Quote(version))
}
sort.Strings(projectVersions)
return projectVersions
}

Expand All @@ -112,6 +114,7 @@ func (c cli) getAvailablePlugins() (pluginKeys []string) {
}
}
}
sort.Strings(pluginKeys)
return pluginKeys
}

Expand Down

0 comments on commit 9931438

Please sign in to comment.