Skip to content

Commit 8e4ae84

Browse files
committed
feat: include/exclude with text/template filters
This changeset also introduces some new methods on `walk.File`, including a method for extracting a shebang (if present), a method for extracting the interpreter portion of the shebang, a method indicating whether or not the file is executable, and a convenience method that indicates if the file "looks like" a script.
1 parent 5e4321a commit 8e4ae84

29 files changed

+1044
-244
lines changed

cmd/init/init.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ options = []
6161
includes = [ "*.<language-extension>" ]
6262
# Glob patterns of files to exclude
6363
excludes = []
64+
# Template filters for selecting files
65+
select = [ "{{ }}" ]
66+
# Template filters for rejecting files
67+
reject = [ "{{ }}" ]
6468
# Controls the order of application when multiple formatters match the same file
6569
# Lower the number, the higher the precedence
6670
# Default is 0

0 commit comments

Comments
 (0)