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

feat: uninstall empty sections #9

Merged
merged 1 commit into from
May 2, 2024
Merged

feat: uninstall empty sections #9

merged 1 commit into from
May 2, 2024

Conversation

williarin
Copy link
Owner

Fixes #8

This PR introduces a new option for the YAML merger.

Uninstalling YAML recipe

When uninstalling a recipe, the YAML merger will not remove the entire section if it's empty, unless you set the uninstall_empty_sections parameter to true.

files:
    config/routes.yaml:
        type: yaml
        source: |
            other_routes:
                resource: .
                type: other_routes_loader
        uninstall_empty_sections: true

In this example, if the other_routes section is empty, it will be removed when uninstalling the recipe.

@williarin williarin merged commit 7386bee into master May 2, 2024
22 checks passed
@williarin williarin changed the title Uninstall empty sections feat: uninstall empty sections May 2, 2024
@williarin williarin deleted the fix-uninstall-yaml branch May 2, 2024 10:39
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

Successfully merging this pull request may close these issues.

Yaml merger uninstall could be tweaked
1 participant