Skip to content

Commit e37c861

Browse files
committed
introduce WithExtendsApplied
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 0103a38 commit e37c861

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cli/options.go

+10
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,16 @@ func WithResolvedPaths(resolve bool) ProjectOptionsFn {
350350
}
351351
}
352352

353+
// WithExtendsApplied set ProjectOptions to enable/skip normalization
354+
func WithExtendsApplied(b bool) ProjectOptionsFn {
355+
return func(o *ProjectOptions) error {
356+
o.loadOptions = append(o.loadOptions, func(options *loader.Options) {
357+
options.SkipExtends = !b
358+
})
359+
return nil
360+
}
361+
}
362+
353363
// WithResourceLoader register support for ResourceLoader to manage remote resources
354364
func WithResourceLoader(r loader.ResourceLoader) ProjectOptionsFn {
355365
return func(o *ProjectOptions) error {

0 commit comments

Comments
 (0)