Skip to content

Commit ffb8c94

Browse files
cli: update completition
1 parent e24ed89 commit ffb8c94

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
@@ -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)