fusillicode
fa7d49282b
Restun exit code for generate_and_execute?
2020-02-22 12:32:35 +01:00
MarcoIeni
320d7fca0a
Sort search results when using -X option
2020-01-02 21:52:26 +01:00
sharkdp
a0505bd4df
Expose exit status from --exec-batch <cmd>
...
closes #333
2019-09-13 23:05:35 +02:00
Alexandru Macovei
d8bd5f9d51
macronize repetitive tests in exec/input
2019-01-26 16:15:48 +01: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
6b40a075cd
exec-batch: fix a panic with -X "echo {}" and pass stdio to child cmd
2018-11-12 21:11:40 +01:00
kimsnj
45d1b15cff
Add support for batch execution of command
2018-11-12 21:11:40 +01:00
kimsnj
32ec7afc3a
Add test with multiple tokens in an argument
2018-11-10 10:29:35 +01:00
teresy
34b8c0df73
refactor: use shorthand fields
2018-11-08 11:48:12 +01:00
sharkdp
81a27fa9bd
Unify error messages, closes #342
2018-10-27 16:30:29 +02: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
Josh Leeb-du Toit
8691ab4bed
Minor changes to improve readability
...
This patch makes minor changes to make the code a little easier to
understand. For example, using the `?` operator in some fns that return
an `Option` type.
2018-10-04 09:44:09 +02:00
Josh Leeb-du Toit
adc467b2b2
Add exec tests and cfg(test) compiler guards
...
Some tests throughout the codebase were just functions marked with the
`#[test]` macro. It is convention to have these test functions in a
`test` module with a compiler guard `cfg(test)`. This PR updates the
tests that aren't already setup like this to be in the `test` module.
Additionally, this PR also adds tests to the `exec` module to check the
remaining `Token` enum variations.
2018-10-03 13:04:22 +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
sharkdp
a5f5ad6254
Re-enable code style check
2018-01-01 16:00:32 +01:00
Matthias Reitinger
5784823aca
Unify execute_command across platforms
2017-12-09 21:10:48 -08:00
sharkdp
5ed7514096
Update error message if command could not be found
2017-11-15 23:24:11 +01:00
Matthias Reitinger
ccdbc76f5a
Fix execute_command on Unix
2017-11-15 23:18:36 +01: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
J.W
614f576c47
Add TODOs and FIXMEs about Windows
2017-10-26 20:56:32 +02:00
J.W
dc29ef70c4
Fix Input::remove_extension and Input::dirname
2017-10-26 20:56:32 +02:00
J.W
6b232a82ee
Fix --exec
2017-10-26 20:56:32 +02: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
Michael Aaron Murphy
6a01faf6e1
Escape exec Inputs
2017-10-21 00:29:46 +02:00
Jose Narvaez
6dc704a18e
Removed unnecessary exclusion of Redox in cond-compilation and narrowed what we import from .
2017-10-20 12:59:36 +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
16eed82ca1
Handle OS-specific path separators when manipulating paths
2017-10-15 11:20:55 -04:00
Michael Aaron Murphy
2a23905af5
Fix merge conflicts
2017-10-15 09:37:48 -04:00
Michael Aaron Murphy
ad1b4f3b2b
Optimize grouping for *nix archs
2017-10-14 21:45:31 -04: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
Michael Aaron Murphy
fb1cd3a322
Fix for older builds
...
Rust 1.19 will be a requirement, however.
2017-10-14 13:38:54 -04:00
Michael Aaron Murphy
4a5a5faf4d
Implement --exec feature
...
Closes #84
2017-10-14 12:24:17 -04:00