Skip to content
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

Support for includes #12

Open
daniele-athome opened this issue Jan 27, 2025 · 0 comments
Open

Support for includes #12

daniele-athome opened this issue Jan 27, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@daniele-athome
Copy link
Owner

daniele-athome commented Jan 27, 2025

References are relatively easy, the main issue will be how to identify this:

configuration.yaml:

automation: !include automations.yaml

automations.yaml:

- alias: automation_one
- alias: automation_two

without building a complete model of all included configuration files, how do I check that those sequence items are actually children of automation? The current code analyzes the YAML tree per file.


The IntelliJ YAML plugin seems to be recognizing YAML anchors, but in our case YAML tags as used as anchors. We'll have to implement something to handle those.


This will hardly make into 1.0: it turns out it is more difficult than it seemed. As a first step, I might recognize in a "special way" the UI-managed YAML files (automation.yaml, scripts.yaml).

@daniele-athome daniele-athome added the enhancement New feature or request label Jan 27, 2025
@daniele-athome daniele-athome added this to the First release milestone Jan 27, 2025
@daniele-athome daniele-athome removed this from the First release milestone Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant