Skip to content

Commit 94d51b9

Browse files
cli: update completition
1 parent 52448dc commit 94d51b9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: internal/cli/arguments/completion.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,11 @@ func GetInstallableCores() []string {
112112
})
113113
var res []string
114114
// transform the data structure for the completion
115-
for _, i := range platforms.SearchOutput {
116-
res = append(res, i.GetMetadata().GetId()+"\t"+i.GetReleases()[i.GetLatestVersion()].GetName())
115+
for _, i := range platforms.GetSearchOutput() {
116+
if i.GetLatestCompatibleVersion() == "" {
117+
continue
118+
}
119+
res = append(res, i.GetMetadata().GetId()+"\t"+i.GetLatestCompatibleRelease().GetName())
117120
}
118121
return res
119122
}

0 commit comments

Comments
 (0)