diff --git a/cmd/generate.go b/cmd/generate.go index a221342..e11a8f4 100644 --- a/cmd/generate.go +++ b/cmd/generate.go @@ -32,6 +32,10 @@ var ( options = append(options, astParser.WithRecursive()) } + if exclusion!=""{ + options = append(options, astParser.WithFileExclusion(exclusion)) + } + for _, directory := range directories { packages = append(packages, astParser.ParseDirectory(directory, options...)...) }