Skip to content

Commit

Permalink
add options
Browse files Browse the repository at this point in the history
  • Loading branch information
afmahmudax committed Nov 12, 2022
1 parent 7c7ee17 commit ce64a16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)...)
}
Expand Down

0 comments on commit ce64a16

Please sign in to comment.