Skip to content

copier copy --include option #2083

Open
@FourierMourier

Description

@FourierMourier

Actual Situation

Hi!
It would be great to have an "include" option to include files to be updated/copied to avoid overwriting unnecessary files.
So far, I've seen only the '--exclude' option and I can simulate the desired behavior by specifying all files except target ones, but when there are lots of files it becomes either more and more inconvenient or less intuitive.

Desired Situation

Ideally, it would be nice to have something like

copier copy --include myfile.txt --include "*.yaml"

and as the result, only the selected files will be copied/updated.

Proposed solution

As a proposed solution, I think just another option would fit the case.
I'm aware of using negative patterns like the ones mentioned in the issue #1794 but I'm not sure that it's an intuitive way to go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions