Consider support for wildcards in targets #2

Open
opened 2023-10-13 13:37:29 +00:00 by BlakeRain · 0 comments
Owner

Currently targets must be specific files. We might want to consider supporting wildcards:

[[copysets]]
name = "Wildcard Test"
source = "/data/source"
target = "/data/target"

[[copysets.targets]]
source = "specific-file.txt"
target = "specific-file.txt"

[[copysets.targets]]
source = "*.txt"

[[copysets.targets]]
source = "*.toml"

Note that when we use a wildcard, the target value doesn't really make any sense.

Currently targets must be specific files. We might want to consider supporting wildcards: ```toml [[copysets]] name = "Wildcard Test" source = "/data/source" target = "/data/target" [[copysets.targets]] source = "specific-file.txt" target = "specific-file.txt" [[copysets.targets]] source = "*.txt" [[copysets.targets]] source = "*.toml" ``` Note that when we use a wildcard, the `target` value doesn't really make any sense.
BlakeRain added the
enhancement
label 2023-10-13 13:37:29 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: BlakeRain/container-copier#2
No description provided.