Crates.io | replaxe |
lib.rs | replaxe |
version | |
source | src |
created_at | 2025-01-22 14:21:25.581693+00 |
updated_at | 2025-01-23 02:20:24.63099+00 |
description | A command-line tool to replace text in files with easy patterns |
homepage | https://github.com/AlseinX/replaxe |
repository | https://github.com/AlseinX/replaxe |
max_upload_size | |
id | 1526652 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
A command-line tool to replace text in files with easy patterns.
The usage help could be obtained by running replaxe --help
:
Usage: replaxe [OPTIONS] [FILES]...
Arguments:
[FILES]... Files to search and replace in. Supports glob patterns
Options:
-p, --pattern <PATTERN> (Would be prompted if not specified) Pattern to search for, simply use `*` as a wildcard to match any string that could be referred from the replace pattern. Wildcards would be matched as short as possible
-r, --replace <REPLACE> (Would be prompted if not specified) Replace pattern, use `*` to refer to the nth captured group in the pattern
-o, --reorder <REORDER> (Would be prompted if not specified) Reorder the captured groups in the replace pattern, use `,` or `;` or ` ` or `\t` to separate the indexes. Indices that are not specified will be left in their original order
-y, --yes Skip the confirmation prompt before actually overwriting the files
-w, --wildcard <WILDCARD> Override the wildcard character instead of `*` [default: *]
-m, --multiline Enable multiline input mode when prompting for patterns and replaces, type an empty line to submit the input
-h, --help Print help