zhangyanming
73429fb36e
alter note
2024-05-06 14:20:44 +08:00
zhangyanming
97bd728aef
fix: alter note
2024-05-06 12:04:15 +08:00
zhangyanming
673c58c3e6
feat: add README_zh-CN.md
2024-05-06 11:58:24 +08:00
Blair Noctis
2d287b9b1c
Overall reorganization ( #265 )
...
* refactor!: overall reorganization
* fmt: tab to spaces
* feat: split out funcs for better error collection
* feat: replace Vec-varianted Source with Vec<Source>
* docs: more generic description for Error::InvalidPath
* fmt: reduce signature verbosity
* internal: decolorize to prepare for proper colorization
* fmt: tab to spaces (again)
* refactor: break up App into main.rs, rm utils.rs
* test: only run cli::in_place_following_symlink on Unix, symlinks are privileged on Windows
* test: update insta snapshots due to Replacer::new()? in main()
* fix: restructure logic, Windows requires closing mmap before write
* test: properly mark no-Windows test
* test: properly mark temp. ignored test
* fix: retain unsafe property of Mmap::map in separate function
* chore: `cargo fmt`
* chore: Resolve lone warning
* test: Test a variety of fs failure cases
* refactor: Add back `try_main()`
* refactor: Rework error handling
* test: Update snapshots
* test: fix path inconsistency
---------
Co-authored-by: Cosmic Horror <CosmicHorrorDev@pm.me>
2023-11-18 14:04:31 -06:00
Evan Platzer
4241babe12
Update README.md for new string literal arg ( #281 )
...
The example for string literal mode mentions the new official argument (`-F` or `--fixed-strings`), but still uses the old, now undocumented `-s` argument. This is confusing for anyone who doesn't know the old syntax.
2023-11-13 13:23:07 -06:00
Philipp Gillé
42f7deae06
Update man page to use changed flag for string literals ( #279 )
...
* Update man page to use changed flag for string literals
* Update corresponding place in `cargo-xtask` task
---------
Co-authored-by: Cosmic Horror <CosmicHorrorDev@pm.me>
2023-11-09 18:03:05 -06:00
CosmicHorror
eb51bdf11e
Prepare 1.0.0 release ( #277 )
...
* Bump version to v1.0.0
* `cargo xtask gen`
* Add all new entries to the changelog
2023-11-07 20:19:46 -06:00
CosmicHorror
cb015f7490
Update sd
version in lockfile ( #275 )
2023-11-05 13:16:09 -06:00
CosmicHorror
45522c2ded
Prepare 1.0.0-beta.0 release ( #274 )
...
* Bump version to v1.0.0-beta.0
* Add all new entries to the changelog
2023-11-05 13:05:21 -06:00
CosmicHorror
d4aa240533
Remove outdated release checklist step ( #272 )
...
Previously the entries in the man page were manually copied in with
slightly tweaked formatting. This was changed to automatically extract
all the entries using `clap_mangen` though which makes the step to make
sure that manpage entries are all up to date, no longer a requirement.
2023-11-05 12:48:16 -06:00
CosmicHorror
bbefeb8ae1
Fix release checklist indentation ( #271 )
2023-11-05 12:36:27 -06: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
e4e42a2d2d
Update the changelog ( #264 )
...
* Update the changelog
* Include the changelog in prebuilt releases
* Dig up older history for the changelog
* Make missing history note clearer
2023-11-01 20:57:04 -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
a98100fb53
Fix copy-paste error ( #257 )
2023-10-23 20:50:41 -05:00
CosmicHorror
662c10b20d
More CI tweaks ( #256 )
...
* Make sure that MacOS ARM builds in CI
* Include man page and completions in prebuilt releases
2023-10-23 20:36:58 -05:00
CosmicHorror
d1fd7c684f
Use .exe for windows executable ( #253 )
2023-10-21 21:31:33 -05:00
CosmicHorror
20b1459a42
Actually use the build target intended for each CI job ( #252 )
2023-10-21 21:06:52 -05:00
CosmicHorror
4a54433860
Update deps ( #251 )
...
* `cargo update`
* `cargo upgrade`
* `cargo upgrade --incompatible -p memmap2`
2023-10-21 11:14:04 -05:00
CosmicHorror
64649bb7f2
Remove broken custom path separator flag ( #250 )
2023-10-21 10:27:10 -05:00
CosmicHorror
639d16fa3c
Switch CI from actions-rs
to `dtolnay/rust-toolchain ( #249 )
2023-10-20 19:02:45 -05:00
CosmicHorror
d0fd7f6ac3
Misc Cargo.toml tweaks ( #248 )
...
* Move the `xtask` to edition 2021 too
* Dont rely on feature unification for clap
* Add `rust-version` to the `Cargo.toml`
2023-10-20 18:06:38 -05:00
Ardi
b542702820
Update to the 2021 edit ( #245 )
2023-10-20 12:43:39 -06:00
CosmicHorror
ff15408074
Exclude unsupported packages from the repology badge ( #243 )
2023-10-18 21:16:59 -05:00
dependabot[bot]
cce969694f
Bump rustix from 0.37.23 to 0.37.25 ( #242 )
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.37.23 to 0.37.25.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.23...v0.37.25 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 16:45:17 -06: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
dependabot[bot]
efb8198a42
Bump clap_complete from 4.4.1 to 4.4.3 ( #233 )
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.4.1 to 4.4.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.4.1...clap_complete-v4.4.3 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 18:01:45 -05:00
dependabot[bot]
dd93f4e270
Bump memmap2 from 0.7.1 to 0.8.0 ( #229 )
...
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs ) from 0.7.1 to 0.8.0.
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.7.1...v0.8.0 )
---
updated-dependencies:
- dependency-name: memmap2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 18:00:47 -05:00
dependabot[bot]
e1826671f3
Bump rayon from 1.7.0 to 1.8.0 ( #228 )
...
Bumps [rayon](https://github.com/rayon-rs/rayon ) from 1.7.0 to 1.8.0.
- [Changelog](https://github.com/rayon-rs/rayon/blob/master/RELEASES.md )
- [Commits](https://github.com/rayon-rs/rayon/compare/rayon-core-v1.7.0...rayon-core-v1.8.0 )
---
updated-dependencies:
- dependency-name: rayon
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 18:00:24 -05:00
CosmicHorror
4d9f8d8e4a
Tone down dependabot ( #236 )
2023-10-02 17:59:33 -05:00
CosmicHorror
6ee7e7ecd2
Update generated assets ( #235 )
2023-10-02 17:52:13 -05:00
Blair Noctis
4ed733834f
docs: use clap_mangen and roff to generate manpage ( #231 )
2023-10-02 17:44:47 -05:00
Vas Sudanagunta
05ee953299
Improve README readability ( #227 )
...
* README: fix formatting of numbered Quick Guide examples
* README: make The Pitch easier to read
- less clutter
- easier on the eyes.
- previous format looks less concise and more wordy even though it's the same.
* README: make Comparison to sed easier to read
- nix deeply nested list, which just adds clutter.
- make sure sed syntax is always lined up just below sd syntax for clear visual contrast
* README: make title look and read better
2023-10-02 17:38:21 -05:00
dependabot[bot]
3d7141477c
Bump clap_complete from 4.4.0 to 4.4.1 ( #220 )
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.4.0 to 4.4.1.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.4.0...clap_complete-v4.4.1 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 22:02:40 -06:00
dependabot[bot]
febdfd3a2c
Bump actions/checkout from 3 to 4 ( #221 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 21:57:51 -06:00
dependabot[bot]
7e7a4ebdda
Bump clap from 4.4.2 to 4.4.3 ( #225 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.2...v4.4.3 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 21:57:11 -06:00
dependabot[bot]
8eb5ae9d99
Bump regex from 1.9.4 to 1.9.5 ( #219 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.4...1.9.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 08:55:59 -06:00
dependabot[bot]
d00dcba43e
Bump thiserror from 1.0.47 to 1.0.48 ( #218 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.47...1.0.48 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-04 08:55:39 -06:00
dependabot[bot]
aa5227da50
Bump clap from 4.3.23 to 4.4.2 ( #217 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.3.23 to 4.4.2.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.23...v4.4.2 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 14:39:59 -06:00
dependabot[bot]
020787921a
Bump clap_complete from 4.3.2 to 4.4.0 ( #215 )
...
Bumps [clap_complete](https://github.com/clap-rs/clap ) from 4.3.2 to 4.4.0.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.3.2...clap_complete-v4.4.0 )
---
updated-dependencies:
- dependency-name: clap_complete
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 14:35:36 -06:00
dependabot[bot]
12b037cfb1
Bump regex from 1.9.3 to 1.9.4 ( #214 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.9.3...1.9.4 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-01 14:35:27 -06:00
dependabot[bot]
8d8d740644
Bump memmap2 from 0.5.10 to 0.7.1 ( #213 )
...
Bumps [memmap2](https://github.com/RazrFalcon/memmap2-rs ) from 0.5.10 to 0.7.1.
- [Changelog](https://github.com/RazrFalcon/memmap2-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/RazrFalcon/memmap2-rs/compare/v0.5.10...v0.7.1 )
---
updated-dependencies:
- dependency-name: memmap2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 19:19:51 -05:00
dependabot[bot]
c0de8badab
Bump assert_cmd from 1.0.8 to 2.0.12 ( #212 )
...
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd ) from 1.0.8 to 2.0.12.
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md )
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v1.0.8...v2.0.12 )
---
updated-dependencies:
- dependency-name: assert_cmd
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 19:11:09 -05:00
dependabot[bot]
3f2583a859
Bump svenstaro/upload-release-action from 1.pre.release to 2.7.0 ( #211 )
...
Bumps [svenstaro/upload-release-action](https://github.com/svenstaro/upload-release-action ) from 1.pre.release to 2.7.0.
- [Release notes](https://github.com/svenstaro/upload-release-action/releases )
- [Changelog](https://github.com/svenstaro/upload-release-action/blob/master/CHANGELOG.md )
- [Commits](https://github.com/svenstaro/upload-release-action/compare/v1-release...2.7.0 )
---
updated-dependencies:
- dependency-name: svenstaro/upload-release-action
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 19:09:34 -05:00
dependabot[bot]
2113a8e1f7
Bump actions/checkout from 2 to 3 ( #210 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 19:03:34 -05:00