Skip to content

Commit c2b595d

Browse files
authored
Merge pull request #3169 from carapace-sh/fix-spec-registry
fix spec registry
2 parents def02fa + 9dc1ecc commit c2b595d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/completer/read.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ func ReadSpecs(dir, group string, parse bool) (CompleterMap, error) {
3131
}
3232

3333
for _, entry := range entries {
34-
var _spec struct {
34+
_spec := struct {
3535
Name string
3636
Description string
37+
}{
38+
Name: strings.TrimSuffix(entry.Name(), ".yaml"), // TODO reuse completer struct?
3739
}
3840

3941
switch {

0 commit comments

Comments
 (0)