ardi
9df4bb43c3
forgot to git add the actual file lol
2023-11-15 06:37:03 +01:00
ardi
e6baec07eb
example implementation
2023-11-15 06:32:07 +01:00
CosmicHorror
345497a64a
Make modified text blue instead of green ( #269 )
2023-11-02 20:31:21 -05:00
CosmicHorror
4f77cfe1b8
Rework the replacements flag ( #267 )
...
* Add replacements tests
* Honor `-n` when using `--preview`
* Rework CLI for replacements flag
* Remove dead code
* Remove lingering TODO
2023-11-02 19:05:55 -05:00
CosmicHorror
79f5de0db7
Temporarily remove recursive (-r
) flag ( #266 )
...
* Remove recursive (`-r`) flag
* `cargo xtask gen`
* Remove unused `globwalk` and `ignore` deps
2023-11-02 17:35:39 -05:00
CosmicHorror
f2d19c127f
Update --preview
help text ( #263 )
2023-11-01 17:31:54 -05:00
CosmicHorror
1ac5fbc551
Remove warning when using --preview
on stdin input ( #259 )
2023-10-30 20:58:14 -05:00
CosmicHorror
a88673b18e
Error on $<num><non_num>
capture replacement names ( #258 )
...
* Mostly working capture name validation
* Improve inputs for property tests
* Fix advancing when passing over escaped dollar signs
* Switch to inline snapshot captures
* Cleanup invalid capture error formatting code
2023-10-28 15:13:54 -05:00
CosmicHorror
64649bb7f2
Remove broken custom path separator flag ( #250 )
2023-10-21 10:27:10 -05:00
CosmicHorror
4dab4123e1
Update --string-mode references to --fixed-strings ( #240 )
2023-10-17 19:08:59 -05:00
Ardi
ad7bba5ba7
Add redundancy warning when passing --preview
while reading from stdin ( #239 )
2023-10-16 18:00:20 -05:00
Blair Noctis
4ed733834f
docs: use clap_mangen and roff to generate manpage ( #231 )
2023-10-02 17:44:47 -05:00
CosmicHorror
b5768a7a4e
Rename --string-mode
to --fixed-strings
( #192 )
...
* Rename `--string-mode` to `--fixed-strings`
* Clarify `--fixed-strings` help text
2023-05-16 20:25:29 -05:00
CosmicHorror
ce7d602d9f
Replace structopt with clap v4 ( #189 )
...
* Replace `structopt` with `clap` v3
* Update clap to v4
* Wire up completions to use `clap`
* Add `.debug_assert()` test for CLI parser
2023-05-11 23:43:47 -05:00
CosmicHorror
c737e3f5eb
Switch atty
for is-terminal
( #188 )
2023-05-11 22:40:47 -05:00
CosmicHorror
27c217a43e
Improve error message for failed replacements ( #186 )
2023-05-11 00:53:57 -05:00
CosmicHorror
c4a50a2b8f
Fix warnings and clippy lints ( #185 )
...
* Fix `cargo check` warnings
* Placate clippy
* Invert conditional
2023-05-10 00:22:22 -05:00
CosmicHorror
f52e96e8ec
memmap
-> memmap2
(#183 )
2023-05-08 20:56:51 -05:00
Linus789
0b11f3e84a
Fix recursive preview (show file path)
2021-05-07 18:59:29 +02:00
Gregory
f0e396157b
Merge pull request #115 from SimplyDanny/follow-symlink-when-writing
...
Fix #94 : Do not replace symlink with output file
2021-05-05 22:28:42 -04:00
Linus789
7d73f9f2ba
Do not print out path in preview
2021-05-06 00:04:05 +02:00
Gregory
6f58914ccc
Cleanup
2021-05-02 19:03:57 -04:00
Gregory
29dd367971
Implement recursive replacement support
2021-05-02 19:03:48 -04:00
Danny Moesch
39e8b8f4da
Fix #94 : Do not replace symlink with output file
2021-03-28 09:58:15 +02:00
Gregory
687f3a5b14
Add support for limited replacements | #105
2021-02-15 16:14:43 -05:00
Gregory
2732a925e3
Move tests to replacer too
2021-02-10 21:57:32 -05:00
Gregory
675fc614f6
Extract replacer into own file
2021-02-10 21:55:32 -05:00
Gregory
495fa3ea9c
Implement recursive glob support
...
#62
2021-02-10 21:49:38 -05:00
Wes Roberts
ebeab6fdf0
Adds note about in-place file modification to --help output
2020-08-03 10:15:16 -04:00
Gregory
1014135f0e
Add empty-file check for memmep use in stdout
...
resolves #76
2020-05-04 14:42:30 -04:00
Greg
88e2d3ed6d
replace: isolate memmap from file errs
2020-04-22 16:54:13 -04:00
Greg
39c29b20cb
Ensure memmap source is not empty
...
resolves #74
2020-04-22 16:48:07 -04:00
Danny Mösch
c8022e292f
Fix #68 : Do not write empty content to file ( #71 )
2020-04-10 17:39:02 -04:00
Greg
191af013dc
Merge branch 'master' of github.com:chmln/sd
2020-03-29 16:37:29 -04:00
Greg
1532f800c8
Misc cleanup
2020-03-29 16:37:24 -04:00
Gregory
3cd464cce9
Upgrade Azure Pipelines ( #65 )
...
* Update azure pipeline config
* iterate
* Depend on master
* Depend on master: take 2
* Depend on master: take 3
* cargo fmt
* Remove min rust version check
* Attempt to remove MSRV test
* Attempt to remove MSRV test: fix jobs template path
* Attempt to remove MSRV test: fix jobs template path
* Attempt to remove MSRV test: fix jobs template path
2020-03-18 20:15:52 -04:00
Greg
5c1d60474e
Minor tweaks
2020-02-24 11:12:17 -05:00
Greg
87491b4dc9
Let ^$ match lines by default
...
resolves #60
2020-01-25 16:36:41 -05:00
Greg
4d274210d3
Pretty-print error on termination
2019-12-30 16:21:56 -05:00
Greg
3bac3945c3
Use own Error type
2019-12-30 16:13:05 -05:00
Greg
9669815cda
cleanup
2019-12-09 13:59:38 -05:00
Greg
d13899dbf3
Remove deprecated flag and cleanup app.rs
2019-11-17 14:48:35 -05:00
Greg
fe5c1481b6
cleanup replacer construction
2019-11-17 14:41:11 -05:00
Greg
a88195bf92
Cleanup some replacement code
2019-11-17 12:33:31 -05:00
Greg
2edc696544
misc cleanup
2019-10-22 18:09:27 -04:00
crides
1a622ce1fd
Add s
flag to make .
match newline
2019-07-24 09:41:22 +08:00
Greg
3e0a8e1747
Fix stdin replacement with no matches + memmap size
...
resolves #41 , resolves #42
2019-06-18 22:56:41 -04:00
Greg
0328591bb1
rustfmt
2019-06-18 14:57:39 -04:00
Greg
f223fc8ce6
Drop mmap_source first
2019-06-18 14:49:52 -04:00
Greg
4982a6645c
Fix crash on Windows | resolves #37
2019-06-18 14:49:23 -04:00