feat: add replace subcommand with multi-pattern support
This commit is contained in:
27
testdata/replace/README.md
vendored
Normal file
27
testdata/replace/README.md
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# Replace Command Fixtures
|
||||
|
||||
This directory contains lightweight fixtures for manual and automated testing of the `renamer
|
||||
replace` command.
|
||||
|
||||
## Structure
|
||||
|
||||
```
|
||||
replace/
|
||||
├── case-sensitivity/
|
||||
│ ├── draft.txt
|
||||
│ ├── Draft.txt
|
||||
│ └── README.md
|
||||
├── multi-pattern/
|
||||
│ ├── alpha-beta.txt
|
||||
│ ├── beta-gamma.log
|
||||
│ ├── nested/
|
||||
│ │ └── gamma-delta.md
|
||||
│ └── README.md
|
||||
└── hidden-files/
|
||||
├── .draft.tmp
|
||||
├── notes.txt
|
||||
└── README.md
|
||||
```
|
||||
|
||||
Each subdirectory contains intentionally blank files used to verify preview, apply, and undo
|
||||
behaviour. Customize or copy these fixtures as needed for new tests.
|
||||
0
testdata/replace/case-sensitivity/Draft.txt
vendored
Normal file
0
testdata/replace/case-sensitivity/Draft.txt
vendored
Normal file
3
testdata/replace/case-sensitivity/README.md
vendored
Normal file
3
testdata/replace/case-sensitivity/README.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
Case-insensitive filesystem fixture.
|
||||
|
||||
Use these files to verify case-only replacements, e.g. `renamer replace draft Draft`.
|
||||
0
testdata/replace/case-sensitivity/draft.txt
vendored
Normal file
0
testdata/replace/case-sensitivity/draft.txt
vendored
Normal file
0
testdata/replace/case-sensitivity/sample.txt
vendored
Normal file
0
testdata/replace/case-sensitivity/sample.txt
vendored
Normal file
0
testdata/replace/hidden-files/.draft.tmp
vendored
Normal file
0
testdata/replace/hidden-files/.draft.tmp
vendored
Normal file
3
testdata/replace/hidden-files/README.md
vendored
Normal file
3
testdata/replace/hidden-files/README.md
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
Hidden files fixture.
|
||||
|
||||
Use to validate `--hidden` flag handling with replace command.
|
||||
0
testdata/replace/hidden-files/notes.txt
vendored
Normal file
0
testdata/replace/hidden-files/notes.txt
vendored
Normal file
4
testdata/replace/multi-pattern/README.md
vendored
Normal file
4
testdata/replace/multi-pattern/README.md
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
Multi-pattern replacement fixture.
|
||||
|
||||
Example usage:
|
||||
renamer replace alpha beta gamma final --path testdata/replace/multi-pattern --recursive --dry-run
|
||||
0
testdata/replace/multi-pattern/alpha-beta.txt
vendored
Normal file
0
testdata/replace/multi-pattern/alpha-beta.txt
vendored
Normal file
0
testdata/replace/multi-pattern/beta-gamma.log
vendored
Normal file
0
testdata/replace/multi-pattern/beta-gamma.log
vendored
Normal file
0
testdata/replace/multi-pattern/nested/gamma-delta.md
vendored
Normal file
0
testdata/replace/multi-pattern/nested/gamma-delta.md
vendored
Normal file
Reference in New Issue
Block a user