Skip to content

Commit

Permalink
docs: update README with multi-pattern replacement examples
Browse files Browse the repository at this point in the history
  • Loading branch information
willibrandon committed Jan 17, 2025
1 parent 8e2eb8c commit b61b60e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ A high-performance, concurrent code search tool written in Rust. RustScout is de
- Preview changes before applying
- Backup and undo support
- Regular expressions with capture groups
- Multiple patterns in a single pass
- 📁 **File Filtering**: Flexible ignore patterns and file type filtering
- 📊 **Rich Output**: Detailed search results with statistics
- 📝 **Context Lines**: Show lines before and after matches for better understanding
Expand Down Expand Up @@ -223,6 +224,18 @@ rustscout-cli list-undo # Shows ava
rustscout-cli undo --dry-run 1627384952 # Preview what would be restored
rustscout-cli undo 1627384952 # Restore from backup using undo ID

# Multiple patterns in one pass
rustscout-cli replace \
-p "oldAPI" -r "newAPI" \
-p "legacyFunc" -r "modernFunc" \
--preview .

# Multiple patterns with word boundaries
rustscout-cli replace \
-p "user" -r "customer" -w \
-p "data" -r "record" -w \
--backup .

# Preserve file metadata
rustscout-cli replace "pattern" --replace "new" --preserve src/

Expand Down

0 comments on commit b61b60e

Please sign in to comment.