英文:
How to exclude multiple directories from bee pack
问题
如何在bee pack工具中排除多个目录?
bee pack -ba "-tags prod" -exr=^userfiles$
这个命令可以排除特定的目录。但是我想要排除名为userfiles、deploy和docs的目录。我尝试了以下命令:
-exr=[^userfiles$,^deploy$,^docs$]
-exr=["^userfiles$","^deploy$","^docs$"]
但是这两个命令都没有起作用。
英文:
How do I exclude multiple directories from bee pack tool?
bee pack -ba "-tags prod" -exr=^userfiles$
this excludes this particular directory. But I want to exclude directories named as userfiles, deploy, docs. I tried
-exr=[^userfiles$,^deploy$,^docs$]
-exr=["^userfiles$","^deploy$","^docs$"]
both of these didn't work.
答案1
得分: 2
由于exr是一个正则表达式,你可以尝试使用(使用re2语法)一个复合表达式:
-exr=^(?:userfile|deploy|docs)$
goop exec bee pack -ba "-tags prod" -exr="^(?:userfiles|deploy|tests|docs)$"
英文:
Since exr is a regexp, you could try and use (using the re2 syntax) a composite:
-exr=^(?:userfile|deploy|docs)$
The OP Joseph confirms the idea in the comments:
goop exec bee pack -ba "-tags prod" -exr="^(?:userfiles|deploy|tests|docs)$"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论