Tavian Barnes
|
73260c0e35
|
walk: Send WorkerResults in batches
|
2023-11-28 15:51:33 -05:00 |
|
Thayne McCombs
|
ee44c1ed90
|
refactor: Use scoped threads from stdlib in spawn_receiver
This makes it so we don't need to use Arc as much.
Fixes #1141
|
2023-03-20 01:21:00 -06:00 |
|
David Peter
|
169d22fde2
|
Merge remote-tracking branch 'origin/master' into clap-derive
|
2022-11-01 20:00:16 +01:00 |
|
Tavian Barnes
|
5bb7a52704
|
walk: Switch back to crossbeam-channel
Fixes #933. Fixes #1060. Fixes #1113.
|
2022-11-01 19:48:39 +01:00 |
|
Thayne McCombs
|
c41d61eeda
|
Merge remote-tracking branch 'upstream/master' into clap-derive
|
2022-10-09 01:00:48 -06:00 |
|
Thayne McCombs
|
4e7b403c1f
|
Use clap-derive for option parsing
This makes the definition of arguments to fd a little more ergonomic,
and makes it easier to insure the types for the arguments are consitent.
|
2022-10-08 00:41:33 -06:00 |
|
Tavian Barnes
|
4ffc34956f
|
Make --strip-cwd-prefix apply to -x/-X
Fixes #898.
|
2022-10-03 21:35:39 +02:00 |
|
Tavian Barnes
|
40b368e761
|
exec: Execute batches before they get too long
Fixes #410.
|
2022-05-28 22:19:47 +02:00 |
|
Thayne McCombs
|
38b84d08d7
|
Fix mistakes from resolving conflicts
|
2022-03-15 01:40:05 -06:00 |
|
Thayne McCombs
|
50c0fa812f
|
Merge branch 'master' into master
|
2022-03-15 01:20:35 -06:00 |
|
Thayne McCombs
|
9fb0c5d372
|
Group together output from multi exec commands
So that if multiple `--exec` options are given, and the commands are run
in parallel, the buffered output for related commands will be
consecutive.
|
2022-03-08 10:15:48 +01:00 |
|
Thayne McCombs
|
0aee9b0fd9
|
Support multiple --exec instances
and `--exec-batch`.
Fixes: #406
|
2022-03-08 10:15:48 +01:00 |
|
Tavian Barnes
|
e7f192f1c6
|
Revert "Switch from std::sync::mpsc to crossbeam-channel"
@sharkdp [noticed][1] a quite severe performance degredation due to this
change. Switch back to std::sync::mpsc until we can fix the performance
regression.
This reverts commit a4bb734482 .
[1]: https://github.com/sharkdp/fd/pull/895#issuecomment-1002099369
|
2021-12-28 12:11:32 -05:00 |
|
Jonathan Goren
|
22dbed0545
|
convert to path instead of cloning in batch exec
update changelog
|
2021-12-11 15:43:53 +02:00 |
|
Jonathan Goren
|
3dc61b5f28
|
rename module entry -> dir_entry
|
2021-12-11 15:43:52 +02:00 |
|
Jonathan Goren
|
813a802b2c
|
send DirEntries to output instead of just path
|
2021-12-11 15:42:07 +02:00 |
|
Tavian Barnes
|
a4bb734482
|
Switch from std::sync::mpsc to crossbeam-channel
This lets us avoid https://github.com/rust-lang/rust/issues/39364, which
could potentially be seen now that we're using recv_timeout().
|
2021-12-01 10:24:58 -05:00 |
|
Thayne McCombs
|
feac240eb5
|
Add buffering to stdout when it's not a terminal
This is based on the work of #736 by @sourlemon207.
I've added the suggestion I recommended on that PR.
|
2021-11-26 21:23:47 +01:00 |
|
Devon Hollowood
|
17dd2a6dfe
|
Implement --batch-size (#866)
|
2021-10-22 00:05:13 -06: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 |
|
Thayne McCombs
|
e4730603d0
|
Address feedback for removing buffering when running on a single thread
|
2021-08-11 09:38:55 +02:00 |
|
Max Triano
|
394e967b5f
|
No buffering cmd output when running on 1 thread
|
2021-08-11 09:38:55 +02:00 |
|
sharkdp
|
4590ae8535
|
Proper error handling within walk.rs
|
2020-04-03 22:36:32 +02:00 |
|
sharkdp
|
e42ddda5a6
|
Clean up exit code handling
|
2020-04-03 10:48:27 +02:00 |
|
sharkdp
|
4274075f6f
|
Remove outdated license headers (not strictly required by Apache-2.0)
|
2020-04-03 10:19:13 +02:00 |
|
fusillicode
|
0f2429cabc
|
Add unit tests for merge_exitcodes
|
2020-02-22 12:32:35 +01:00 |
|
fusillicode
|
232e3937f2
|
Rename error_if_any_error to merge_exitcodes
|
2020-02-22 12:32:35 +01:00 |
|
fusillicode
|
e23398e6d0
|
Extract error_if_any_error as free function
|
2020-02-22 12:32:35 +01:00 |
|
fusillicode
|
e46998278a
|
Fix typo in a job.rs comment
|
2020-02-22 12:32:35 +01:00 |
|
fusillicode
|
7213f5a88e
|
Add collection of job & thread exit codes + default to ExitCode::Error if any ExitCode::Error
|
2020-02-22 12:32:35 +01:00 |
|
sharkdp
|
a0505bd4df
|
Expose exit status from --exec-batch <cmd>
closes #333
|
2019-09-13 23:05:35 +02:00 |
|
Alexandru Macovei
|
051ff5987a
|
[2018 edition] remove all extern crate lines from sources
|
2019-01-07 12:52:30 +01:00 |
|
Alexandru Macovei
|
64e6ea9fe9
|
[2018 edition] run cargo fix edition and edition-idioms
|
2019-01-07 12:52:30 +01:00 |
|
kimsnj
|
45d1b15cff
|
Add support for batch execution of command
|
2018-11-12 21:11:40 +01:00 |
|
Park Juhyung
|
095bad550f
|
Print errors when --verbose is set
|
2018-10-23 21:50:25 +02:00 |
|
Josh Leeb-du Toit
|
984f04f142
|
Add print_error macros to replace functions
This patch replaces the `print_error` and `print_error_and_exit`
functions with equivalent macros.
|
2018-10-12 07:31:21 +02:00 |
|
sharkdp
|
56b6389dac
|
--exec: Do not exit on errors
|
2018-10-01 22:00:23 +02:00 |
|
sharkdp
|
046b0574dc
|
Rename error => print_error_and_exit and introduce print_error
|
2018-10-01 22:00:23 +02:00 |
|
psinghal20
|
6407dc4eb4
|
chore: format code via rustfmt
|
2018-10-01 22:00:23 +02:00 |
|
psinghal20
|
2ebef2d46f
|
feat: enable display of error messages
|
2018-10-01 22:00:23 +02:00 |
|
sharkdp
|
6a9f16e159
|
Run latest version of rustfmt
|
2018-04-13 23:13:22 +02:00 |
|
Matthias Reitinger
|
0f82fe7ec0
|
Rename TokenizedCommand to CommandTemplate
|
2017-11-15 23:18:36 +01:00 |
|
Matthias Reitinger
|
c18caaa6f6
|
Remove CommandTicket to avoid Vec allocation
|
2017-11-15 23:18:36 +01:00 |
|
Matthias Reitinger
|
18709b1ede
|
Remove shell with --exec
|
2017-11-15 23:18:36 +01:00 |
|
sharkdp
|
e9cf8af911
|
Updates and preparations for v5.0
|
2017-10-22 12:10:51 +02:00 |
|
Antti Keränen
|
701b8f209b
|
Relicense under MIT/Apache-2.0
|
2017-10-22 10:36:42 +02:00 |
|
J.W
|
8d85debc12
|
Refactor path handling (fixes #113)
* Fix path check
* Fix full path matching
* Allow more simple driver names in Windows tests
* Factor out special is_dir() check for "." and ".."
|
2017-10-18 20:04:34 +02:00 |
|
Michael Aaron Murphy
|
1bc58b2fbb
|
Group outputs from exec
|
2017-10-14 18:06:49 -04:00 |
|
Michael Aaron Murphy
|
718f723d31
|
Enable absolute paths w/ exec
|
2017-10-14 16:42:47 -04:00 |
|
Michael Aaron Murphy
|
884bd41cae
|
Apply cargo fmt
|
2017-10-14 14:04:04 -04:00 |
|