Skip to content

Commit 7d78926

Browse files
cli: update completition
1 parent f781a35 commit 7d78926

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/cli/arguments/completion.go

Lines changed: 5 additions & 2 deletions
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)