Skip to content

Conditional includes #269

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

Open
1 task done
boldandbrad opened this issue May 6, 2025 · 0 comments
Open
1 task done

Conditional includes #269

boldandbrad opened this issue May 6, 2025 · 0 comments
Assignees

Comments

@boldandbrad
Copy link
Contributor

Code of Conduct

  • I agree to follow this project's Code of Conduct

What would you like to see changed/added?

I think it would be useful to be able to conditionally include a file or directory.

Not sure if the following is the right approach or valid yaml but I’m thinking something along the lines of:

- !include “mac.yaml”
  if: eq .OS “darwin”

This behavior can technically already be accomplished by using an if statement on all of the items in mac.yaml individually, but I think this approach would be much cleaner and provide some more flexibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants