如何从蜂包中排除多个目录

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$"]

这两个都不行。

因为 exr 是一个正则表达式,你可以尝试使用(使用 re2 syntax)复合:

-exr=^(?:userfile|deploy|docs)$

OP Joseph confirms the idea :

goop exec bee pack -ba "-tags prod" -exr="^(?:userfiles|deploy|tests|docs)$"