Skip to content

refactor: Simplify#65

Merged
jdehaan merged 4 commits intomainfrom
refactor/simplify
Mar 24, 2026
Merged

refactor: Simplify#65
jdehaan merged 4 commits intomainfrom
refactor/simplify

Conversation

@jdehaan
Copy link
Copy Markdown
Member

@jdehaan jdehaan commented Mar 24, 2026

Description

Simplify the configuration and the codebase, avoid the arrays for source and target, that is too complex

jdehaan added 4 commits March 24, 2026 21:03
Introduce a Mapping struct as an intermediate layer between Config and Job. Each mapping defines a source/target base path pair and owns a list of jobs with relative paths. This eliminates the verbose ${source_home} / ${target_base} variable patterns repeated in every job. Clean migration — old flat format removed entirely.
Replaced the two near-identical functions (resolveTemplateVariables and ResolveConfig) with a shared resolveFields(cfg, joinPaths)
@jdehaan jdehaan merged commit 703a087 into main Mar 24, 2026
2 checks passed
@jdehaan jdehaan deleted the refactor/simplify branch March 24, 2026 21:49
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.

1 participant