Skip to content

Commit 9dc1ecc

Browse files
committed
fix spec registry
1 parent cd7e97d commit 9dc1ecc

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)