Add regex command implementation

This commit is contained in:
Rogee
2025-10-31 10:12:02 +08:00
parent a0d7084c28
commit d436970848
55 changed files with 2115 additions and 9 deletions

14
tests/fixtures/regex/README.md vendored Normal file
View File

@@ -0,0 +1,14 @@
# Regex Command Fixtures
These fixtures support contract and integration testing for the `renamer regex` command. Each
subdirectory contains representative filenames used across preview, apply, conflict, and
validation scenarios.
- `baseline/` — ASCII word + digit combinations (e.g., `alpha-123.log`) used to validate basic
capture group substitution.
- `unicode/` — Multilingual filenames to verify RE2 Unicode handling and ledger persistence.
- `mixed/` — Build-style artifacts with underscores/dashes for automation-style rename flows.
- `case-fold/` — Differing only by case to simulate case-insensitive duplicate conflicts.
Tests should copy these directories to temporary working paths before mutation to keep fixtures
idempotent.

View File

@@ -0,0 +1 @@
baseline fixture alpha-123

View File

@@ -0,0 +1 @@
baseline fixture beta-456

View File

@@ -0,0 +1 @@
test fixture gamma-789

View File

@@ -0,0 +1 @@
case fold fixture upper sample

View File

@@ -0,0 +1 @@
case fold fixture upper-lower sample

View File

@@ -0,0 +1 @@
case fold fixture lower sample

View File

@@ -0,0 +1 @@
placeholder archive fixture 101

View File

@@ -0,0 +1 @@
placeholder archive fixture 102

View File

@@ -0,0 +1 @@
feature demo placeholder file

View File

@@ -0,0 +1 @@
Markdown résumé placeholder for Unicode accent coverage.

View File

@@ -0,0 +1 @@
示例文件用于验证Unicode处理。