Skip to content

Commit

Permalink
feat(logic): add option for files whitelist and backlist on interpret…
Browse files Browse the repository at this point in the history
…er params
  • Loading branch information
bdeneux committed Apr 24, 2023
1 parent 9016501 commit fec5745
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions x/logic/types/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ func WithPredicatesBlacklist(blacklist []string) InterpreterOption {
}
}

// WithVirtualFilesWhitelist sets the whitelist of predicates.
func WithVirtualFilesWhitelist(whitelist []string) InterpreterOption {
return func(i *Interpreter) {
i.VirtualFilesFilter.Whitelist = whitelist
}
}

// WithVirtualFilesBlacklist sets the blacklist of predicates.
func WithVirtualFilesBlacklist(blacklist []string) InterpreterOption {
return func(i *Interpreter) {
i.VirtualFilesFilter.Blacklist = blacklist
}
}

// WithBootstrap sets the bootstrap program.
func WithBootstrap(bootstrap string) InterpreterOption {
return func(i *Interpreter) {
Expand Down

0 comments on commit fec5745

Please sign in to comment.