Skip to content

[FEATURE] Exclusive control over directories #227

Description

@JanNeuendorf

Is your feature request related to a problem? Please describe.
If my configuration is in ~/.config/program/ and I already have some files there,
it is very easy to have a setup were not all the needed files are in my dotter repo.
I think that I have a reproducible setup, but it really just works because one of the files was already in the target folder.

Describe the solution you'd like
There should be some kind of "exclusive" mode that allows me to say "this package controls the entire state of ~/.config/program". If there are files in there that are not tracked by dotter, they can either be deleted or there could be an error.

Describe alternatives you've considered
This is easy to do with a pre-deploy script, but it is somewhat annoying and it would be a lot nicer if this were integrated. You could, for example, have errors if multiple packages want to control the same directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions