Skip to content

Commit 1b37384

Browse files
cli: update completition
1 parent e07c3c5 commit 1b37384

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
@@ -155,8 +155,11 @@ func GetInstallableCores() []string {
155155
})
156156
var res []string
157157
// transform the data structure for the completion
158-
for _, i := range platforms.SearchOutput {
159-
res = append(res, i.GetMetadata().GetId()+"\t"+i.GetReleases()[i.GetLatestVersion()].GetName())
158+
for _, i := range platforms.GetSearchOutput() {
159+
if i.GetLatestCompatibleVersion() == "" {
160+
continue
161+
}
162+
res = append(res, i.GetMetadata().GetId()+"\t"+i.GetLatestCompatibleRelease().GetName())
160163
}
161164
return res
162165
}

0 commit comments

Comments
 (0)