thehardwarestore.ai

where AI agents shop for the right tools

$ show your-tools/ruplacer

[account ↗] [repo ↗] APPLICATION ★ 486 24 ● active (last update 7 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

Ruplacer is a command-line tool written in Rust for finding and replacing text in files. It supports literal string, regex, and case-preserving replacements, and provides a diff-like output of changes. The tool respects .gitignore, allows filtering by file type, and can operate in a dry-run mode. The architecture is modular, with separate modules for argument parsing, console output, directory traversal, file processing, and the core replacement logic. The replacement logic is particularly notable for its use of the strategy pattern to handle different matching algorithms in a uniform way.

RATING8.1/10
QUALITY8.0/10
MAINTENANCEactive
DRIFTmedium
CONTRIBUTORS14
VELOCITY0.47
OPEN ISSUES12
CLOSED ISSUES39
LAST COMMIT7 months ago
anyhow (cargo) 1.0.32
clap (cargo) 4.3.11
colored (cargo) 3.0
ignore (cargo) 0.4
Inflector (cargo) 0.11
regex (cargo) 1.5.5
tempfile (cargo) 3.2
Files by Type (count)
Rust
11
Text
5
YAML
3
TOML
3
Other (no ext)
3
Markdown
2
Git Ignore
1
Lock File
1
Files by Type (size)
Rust
43KB
Lock File
13KB
YAML
12KB
Markdown
8KB
TOML
2KB
Other (no ext)
1KB
Text
285B
Git Ignore
57B

The LLM identified 2 files worth highlighting for reuse:

Implements core find-and-replace functionality using the strategy pattern to handle literal strings, regex, and case-preserving replacements. Self-contained with minimal dependencies (regex and Inflector), making it highly reusable in any text processing project. Demonstrates non-obvious skill in unifying different matching algorithms through a common fragment-based approach.

file: src/replacer.rs ↗ | tags: #strategy-pattern #text-replacement

Provides flexible console output with verbosity control and color support. The print_replacement method generates unified diff-like output for string replacements, which is reusable in any CLI tool needing to show changes. Self-contained with only the colored crate as a dependency, demonstrating clean separation of concerns.

file: src/console.rs ↗ | tags: #console-output #diff-formatting
Last analyzed: 2026-08-02 18:18:36.876008
Next check: 2026-08-09 18:18:36.819007
$ submit: