summaryrefslogtreecommitdiffstats
path: root/commands/commands.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-09 16:51:13 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-10 08:47:05 +0200
commit9a1e6d15a31ec667b2ff9cf20e43b1daca61e004 (patch)
tree1e5bfed58030989858820e3e2e1ceba0b46a31c2 /commands/commands.go
parent84adecf97baa91ab18cb26812fa864b4451d3c5f (diff)
modules: Make ignoreVendor a glob pattern
Fixes #7642
Diffstat (limited to 'commands/commands.go')
-rw-r--r--commands/commands.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/commands.go b/commands/commands.go
index 09e0c8455..ddacc7cf3 100644
--- a/commands/commands.go
+++ b/commands/commands.go
@@ -273,6 +273,7 @@ func (cc *hugoBuilderCommon) handleCommonBuilderFlags(cmd *cobra.Command) {
cmd.PersistentFlags().StringVarP(&cc.environment, "environment", "e", "", "build environment")
cmd.PersistentFlags().StringP("themesDir", "", "", "filesystem path to themes directory")
cmd.PersistentFlags().BoolP("ignoreVendor", "", false, "ignores any _vendor directory")
+ cmd.PersistentFlags().StringP("ignoreVendorPaths", "", "", "ignores any _vendor for module paths matching the given Glob pattern")
}
func (cc *hugoBuilderCommon) handleFlags(cmd *cobra.Command) {