Skip to content

Commit

Permalink
cli: update completition
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Oct 19, 2023
1 parent 6a2bc01 commit 400c0dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/cli/arguments/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,11 @@ func GetInstallableCores() []string {
})
var res []string
// transform the data structure for the completion
for _, i := range platforms.SearchOutput {
res = append(res, i.GetMetadata().GetId()+"\t"+i.GetReleases()[i.GetLatestVersion()].GetName())
for _, i := range platforms.GetSearchOutput() {
if i.GetLatestCompatibleVersion() == "" {
continue
}
res = append(res, i.GetMetadata().GetId()+"\t"+i.GetLatestCompatibleRelease().GetName())
}
return res
}
Expand Down

0 comments on commit 400c0dd

Please sign in to comment.