Skip to content

Commit ae73362

Browse files
authored
Merge pull request #204 from ndeloof/WithNormalization
2 parents 8e87de4 + f390b34 commit ae73362

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cli/options.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@ func WithInterpolation(interpolation bool) ProjectOptionsFn {
249249
}
250250
}
251251

252+
// WithNormalization set ProjectOptions to enable/skip normalization
253+
func WithNormalization(normalization bool) ProjectOptionsFn {
254+
return func(o *ProjectOptions) error {
255+
o.loadOptions = append(o.loadOptions, func(options *loader.Options) {
256+
options.SkipNormalization = !normalization
257+
})
258+
return nil
259+
}
260+
}
261+
252262
// WithResolvedPaths set ProjectOptions to enable paths resolution
253263
func WithResolvedPaths(resolve bool) ProjectOptionsFn {
254264
return func(o *ProjectOptions) error {

0 commit comments

Comments
 (0)