Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从bee pack工具中排除多个目录?
bee pack -ba "-tags prod" -exr=^userfiles$
这不包括这个特定的目录。但我想排除名为 userfiles、deploy、docs 的目录。我试过了
-exr=[^userfiles$,^deploy$,^docs$] -exr=["^userfiles$","^deploy$","^docs$"]
-exr=[^userfiles$,^deploy$,^docs$]
-exr=["^userfiles$","^deploy$","^docs$"]
这两个都不起作用。
由于 exr 是一个正则表达式,您可以尝试使用(使用re2 语法)复合:
-exr=^(?:userfile|deploy|docs)$
OP Joseph在评论中证实了这个想法:
goop exec bee pack -ba "-tags prod" -exr="^(?:userfiles|deploy|tests|docs)$"