gpt4 book ai didi

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

转载 作者:IT王子 更新时间:2023-10-29 02:05:22 25 4
gpt4 key购买 nike

如何从 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证实了这个想法in the comments :

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

关于go - 如何从蜂包中排除多个目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29869580/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com