Skip to content

feat: implement base mode for extraction path control#17

Merged
csjones merged 1 commit into
mainfrom
OPTIONAL-PREFIX-STRIP
Mar 23, 2026
Merged

feat: implement base mode for extraction path control#17
csjones merged 1 commit into
mainfrom
OPTIONAL-PREFIX-STRIP

Conversation

@csjones

@csjones csjones commented Mar 23, 2026

Copy link
Copy Markdown
Contributor
  • Added base field to ExtractionMapping ("root" or "match") for path structure control
  • Added --base CLI flag with validation for "root" or "match" values
  • Implemented destinationRelativePath() to strip literal prefix when base:match is active
  • Added buildExpandedPrefixMap() to trace expanded patterns to original literal prefixes
  • Updated deduplication logic to use destination-relative paths for base:match mode

- Added `base` field to ExtractionMapping ("root" or "match") for path structure control
- Added `--base` CLI flag with validation for "root" or "match" values
- Implemented destinationRelativePath() to strip literal prefix when base:match is active
- Added buildExpandedPrefixMap() to trace expanded patterns to original literal prefixes
- Updated deduplication logic to use destination-relative paths for base:match mode
@csjones csjones merged commit a4c19c7 into main Mar 23, 2026
2 checks passed
@csjones csjones deleted the OPTIONAL-PREFIX-STRIP branch March 23, 2026 07:11
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