support ignoring file or directories

use the doublestar library to support pattern matching of files or
directories to ignore. This replaces (and deprecates) the previous
-skip flag which only supported file extensions.
This commit is contained in:
Will Norris
2021-07-28 02:41:40 -07:00
parent 99ebc9c9db
commit 4f7a460357
6 changed files with 106 additions and 12 deletions

5
go.mod
View File

@@ -2,4 +2,7 @@ module github.com/google/addlicense
go 1.13
require golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
require (
github.com/bmatcuk/doublestar/v4 v4.0.2
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e
)