2015-04-25 17 views
1

如何從蜜蜂包工具中排除多個目錄?如何從蜜蜂包中排除多個目錄

bee pack -ba "-tags prod" -exr=^userfiles$

這排除了這個特定的目錄。但我想排除名爲用戶文件,部署,文檔的目錄。我試圖

-exr=[^userfiles$,^deploy$,^docs$]
-exr=["^userfiles$","^deploy$","^docs$"]

這兩個沒有工作。

回答

2

由於EXR是一個正則表達式,你可以嘗試使用(使用re2 syntax)的複合材料:

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

OP Joseph證實了這個想法in the comments

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

確切語法是: 'GOOP exec bee pack -ba「-tags prod」-exr =「^(?: userfiles | deploy | tests | docs)$」' – jjude

+0

@Joseph太棒了!我已將您的評論納入答案中,以獲得更多的知名度。 – VonC