Skip to content

Add --prune flag to prune unrecognised files in generated dir - #42

Merged
JamyGolden merged 1 commit into
mainfrom
jamy/feature/prune-stale
Sep 27, 2026
Merged

JamyGolden merged 1 commit into
mainfrom
jamy/feature/prune-stale

Conversation

@JamyGolden

Copy link
Copy Markdown
Member

Adding a --prune-stale flag to the global tinted-theming automatic builds should fix this issue: tinted-theming/schemes#114 (comment)

Change description

Add build --prune-stale flag which deletes previously generated themes, or unknown files in out directory, of files that aren't recognised. Renaming a scheme previously left the old theme behind in every template repository indefinitely. Pruning is limited to files matching a template config entry's own filename pattern, skips scheme systems that generated nothing in the same run, and only runs once every config entry has been generated successfully.

@JamyGolden
JamyGolden requested a review from a team as a code owner September 23, 2026 12:06
@JamyGolden
JamyGolden requested review from bezhermoso and carmiac and removed request for a team September 23, 2026 12:06

@bezhermoso bezhermoso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just have one nit, this looks good ❤️

Comment thread tinted-builder-rust/src/cli.rs Resolved
@JamyGolden
JamyGolden force-pushed the jamy/feature/prune-stale branch 4 times, most recently from fcb9f8c to 327c4bd Compare September 26, 2026 20:53
@JamyGolden
JamyGolden force-pushed the jamy/feature/prune-stale branch from 327c4bd to ea5173d Compare September 26, 2026 20:54
@JamyGolden JamyGolden changed the title Add --prune-stale flag to prune unrecognised files in generated dir Add --prune flag to prune unrecognised files in generated dir Sep 26, 2026
@JamyGolden
JamyGolden merged commit ae1cc37 into main Sep 27, 2026
12 checks passed
@JamyGolden
JamyGolden deleted the jamy/feature/prune-stale branch September 27, 2026 15:25
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.

2 participants