f1a639ea8c
Change id reporting API to return ExitCode
...
Because this API only errors when write!() errors occur, we can return
the exit code as an error here.
This way the user of the API can immediately exit if there was an IO
error, but the API automatically takes care of the right return value,
returning (exiting) with zero (0) if there was an "Broken pipe" error
and with one (1) otherwise, which is the expected behaviour here.
All calls to that API were changed accordingly.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-11 03:22:56 +01:00
9185abcfa5
Update copyright years
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-01-03 18:41:36 +01:00
9fca66aa89
Forbid unsafe code in all crates
2018-11-11 13:05:55 +01:00
4e5315b0e5
Add ID reporting in imag-grep
2018-11-06 20:33:30 +01:00
02985e5a0d
Fix missing counting
2018-04-13 13:27:08 +02:00
50461b839a
Use output stream from Runtime::stdout()
2018-03-04 13:57:44 +01:00
09da5cc21e
Fix for broken pipe panic
2018-02-19 11:14:19 +01:00
3341e3640c
Merge pull request #1224 from matthiasbeyer/git-version-in-version
...
Git version in version
2018-02-18 20:03:09 +01:00
9469693763
Use new make_imag_version!() macro for building version string
2018-02-13 11:38:34 +01:00
c0000b6410
Rewrite .map_err_trace_exit_unwrap()
...
Necessary because error types changed
2018-02-12 21:19:48 +01:00
ec2f3a73d7
Do not print stats when listing files with matches
2018-02-10 16:41:23 +01:00
d5a9e4930d
Update dates in license header
...
And add missing header in one file
2018-02-07 02:48:53 +01:00
8e931cd79f
Change calls to into_get_iter() to not take argument
2018-02-01 16:46:38 +01:00
bfc35e0517
Remove dependency "version"
...
Because the "version" crate is licensed as GPL, which would us require
to release imag as GPL, we remove the crate now.
2018-01-12 13:33:40 +01:00
815cde76d0
Rewrite .map_err_trace_exit().unwrap() with new helper fn
2017-10-12 20:15:46 +02:00
922ed445d4
imag-grep: Add new crate
2017-09-15 21:16:02 +02:00