-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ability to exclude specific folders when use --filter generating configs #248
Comments
You can do this with what's available today: See this example https://go.dev/play/p/iFJsnv6uBAx, which uses the function Match. In our case, Glob() is used, but the docs say it abides by the same pattern as Match(). |
@rjsigma have you tried the globbing pattern I've suggested? |
Hi @gmaghera
According to the https://www.digitalocean.com/community/tools/glob?comments=true&glob=%2A%2A%2F%2A%2B%28123456789012%7C121234567890%7C131234567890%29&matches=false&tests=%2F%2F%20Imported%20from%20tree%20command&tests=live-infrastructure%2Faccount_123456789012&tests=live-infrastructure%2Fanotherdomain%2Fsecond_name%2Fsomethingtwo-01-131234567890&tests=live-infrastructure%2Fdomain%2Fonename%2Fsomething-01-121234567890
I wonder if you would be able to figure out how to solve my problem |
I also need a feature to be able to exclude certain files/directories from a repo that causes errors and no resulting yaml output. Since there's no way to exclude specific paths, filter must be used to include everything but my particular exclusions. However, because the repository is of unknown depth and Go does not support |
I've solved this temporarily by running this tool within a shell script that sets a consistent root path then iterates through all of the non-excluded directories with a |
As mentioned by someone above, go glob is not good at excluding pattern. |
We can use
--filter
command line parameters to limit configuration generation within a certain glob pattern. However, there is no easy way to exclude some specific folders within the glob pattern.For example, if we have following directory structure
there is no easy way to specify following:
a
exceptd
should use workflow1d
should use workflow2The text was updated successfully, but these errors were encountered: