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

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.

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