We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e67f961 + c8daf1d commit 2026e9bCopy full SHA for 2026e9b
pkg/cdi/spec-dirs.go
@@ -43,6 +43,10 @@ var (
43
44
// WithSpecDirs returns an option to override the CDI Spec directories.
45
func WithSpecDirs(dirs ...string) Option {
46
+ // If no spec dirs are specified use the default spec dirs.
47
+ if len(dirs) == 0 {
48
+ return WithSpecDirs(DefaultSpecDirs...)
49
+ }
50
return func(c *Cache) {
51
specDirs := make([]string, len(dirs))
52
for i, dir := range dirs {
0 commit comments