Commit Graph

832 Commits

Author SHA1 Message Date
David Peter 06c58b99f5 Update CHANGELOG 2021-11-26 17:58:18 +01:00
David Peter 776f8d0f11 Shorten short help text 2021-11-26 17:58:18 +01:00
David Peter 47421a49b8 Remove strip-prefix placeholders 2021-11-26 17:58:18 +01:00
David Peter f347379fb0 Adapt help text 2021-11-26 17:48:31 +01:00
David Peter 4d7e34ad59 Rename option to strip_cwd_prefix, rename CLI option 2021-11-26 17:46:04 +01:00
David Peter 359c0269ba Remove example from man page 2021-11-26 17:40:42 +01:00
David Peter 13cdfb32f8 Remove outdated comment 2021-11-26 17:40:07 +01:00
Jonah Caplan bf9e6fd36e add -P option to strip prefix to tty 2021-10-17 00:29:51 -04:00
Jonah Caplan 46db1c4ef3 add {-} format for exec 2021-10-16 23:52:04 -04:00
Jonah Caplan b9cb5d54a4 fixup tests 2021-10-16 23:13:27 -04:00
Jonah Caplan a41021b0d2 use interactive_terminal 2021-10-16 14:34:58 -04:00
Jonah Caplan 82f04755bf hopefully fix build error on windows 2021-10-16 14:21:11 -04:00
Jonah Caplan c42bf4b904 don't strip paths for -X/x, and for tty output 2021-10-16 14:15:37 -04:00
Jonah Caplan fbc836b553 Revert -X stuff
This reverts commit 91860bf682.
2021-10-16 14:03:23 -04:00
Jonah Caplan 91860bf682 fmt 2021-10-16 00:02:37 -04:00
Jonah Caplan a4a4709320 rename Option to Config 2021-10-15 23:59:47 -04:00
Jonah Caplan b6f8bc8ff8 also handle -X and -x with no_strip 2021-10-15 23:57:03 -04:00
Jonah Caplan 782fc278aa add changelog entry 2021-10-15 23:57:03 -04:00
Jonah Caplan 12650a0913 add example to man page and correct test comment 2021-10-15 23:57:03 -04:00
Jonah Caplan 2e115df9e7 simplify check in prent_entry 2021-10-15 23:57:03 -04:00
Jonah Caplan 953f586f26 replace -N option with specifying '.' path 2021-10-15 23:57:03 -04:00
Jonah Caplan 08d913f167 cargo fmt fixup 2021-10-15 23:56:36 -04:00
Jonah Caplan 6b92c5db90 add -N/--no-strip option to show "./" prefix on relative paths 2021-10-15 23:56:36 -04:00
Tavian Barnes 7b5b3ec47b walk: Add a cache for DirEntry metadata 2021-10-13 09:13:44 +02:00
Niklas Mohrin 02e9850112 Refactor: Rename `Options` to `Config` 2021-10-12 18:49:07 +02:00
Niklas Mohrin b8c575cc8f Refactor: extract some methods out of `run` and reorder `main.rs`
Now, the top method is `main`, then comes `run`, then the methods used
in `run` follow. Generally, a method is always declared somewhere after
its first use. This way, you can read the file from top to bottom with
a decreasing level of abstraction (you start with very high-level
processes like setting the current dir and logic for which ls command to
use only comes furher down).
2021-10-12 18:49:07 +02:00
Niklas Mohrin 3de948ae0d Refactor: use some nice Rust methods in buffering code 2021-10-12 18:49:07 +02:00
Niklas Mohrin 45a86459b2 Refactor: `merge_exit_codes` now takes an `impl IntoIterator<Item = ExitCode>`
This way, callers don't need to collect into a slice / vec.
2021-10-12 18:49:07 +02:00
Niklas Mohrin a64a607fd8 Bump MSRV to 1.53 2021-10-12 18:49:07 +02:00
Thayne McCombs 00eb6461cb
Remove an unnecessary reference. (#864)
This was caught by Code Quality github action with the message:

> this expression borrows a reference (`&walk::DirEntry`) that is immediately dereferenced by the compiler
2021-10-12 00:46:15 -06:00
dependabot[bot] feb969881b Bump libc from 0.2.101 to 0.2.103
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.101 to 0.2.103.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.101...0.2.103)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 22:49:44 +02:00
dependabot[bot] c06efe1317 Bump anyhow from 1.0.43 to 1.0.44
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.43...1.0.44)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-08 22:49:38 +02:00
Tavian Barnes 04fac46c5c
Merge pull request #857 from exploide/short-help-completion
Added missing help messages to various options
2021-10-07 12:52:31 -04:00
Tavian Barnes e0d03d170e
Merge pull request #858 from friederbluemle/fix-typo
Fix typos
2021-10-07 12:52:12 -04:00
Frieder Bluemle fd1c3d376e
Fix typos 2021-10-06 18:38:50 +02:00
exploide c3f786db43 added missing help messages to various options
despite they have hidden_short_help set to true, a short help message is still useful for auto-generated completions
2021-10-03 17:06:09 +02:00
Niklas Mohrin a5f17db53a CI: Run clippy on stable and use msrv setting in `clippy.toml` 2021-09-03 07:36:12 +02:00
Tavian Barnes f1a5aa0887
Merge pull request #846 from tmccombs/dep-update
Update dependencies
2021-09-02 14:40:47 -04:00
Thayne McCombs 3c619afe30 Update dependencies
in Cargo.lock and Cargo.toml
2021-09-01 17:32:57 -06:00
Tavian Barnes 476d404938
Merge pull request #817 from will459/add_no_ignore_parent
Add --no-ignore-parent flag
2021-09-01 13:22:01 -04:00
William Correia 43f5c8adc9
Add tests for --no-ignore-parent 2021-08-31 18:04:42 -04:00
David Peter 3ba90dd768 Remove --lib option 2021-08-22 16:06:04 +02:00
David Peter 87caef9513 Use --locked for cargo, enable 'cargo fmt' check 2021-08-22 16:06:04 +02:00
Thayne McCombs 78e21395b8 Make list of ignore files for `--no-ignore` more explicit 2021-08-15 12:52:10 +02:00
Thayne McCombs 1b52948e42 Add better documentation of vcs-ignore files.
Explicitly list which files are used for gitignore.

Fixes #354
2021-08-15 12:52:10 +02:00
Asha20 334488cab7
Add -q/--quiet/--has-match flag (#813)
Instead of printing to stdout, the program will return 1 as the exit
code if there are no matches and 0 otherwise.
2021-08-14 17:57:01 +02:00
a1346054 1c72f80ff5 fix whitespace 2021-08-14 16:21:02 +02:00
a1346054 5b4869a940 fix spelling 2021-08-14 16:21:02 +02:00
Thayne McCombs 049232439a Add item to CHANGELOG for no buffer with single thread 2021-08-11 09:38:55 +02:00
Thayne McCombs e4730603d0 Address feedback for removing buffering when running on a single thread 2021-08-11 09:38:55 +02:00