Matthias Beyer
39d638daee
Adapt for new StoreId API
...
When printing the storepath with the ID (when requested by the user), we
have to ask the store for its path.
This is a rather naive implementation which could be improved by only
checking for a boolean in the last iteration and then use a prepared
variable, rather than making the storepath part of the iterator.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-15 20:53:29 +01:00
Matthias Beyer
90eaeb642a
Remove magic constants in trace_unwrap_exit/map_err_trace_exit_unwrap calls
...
This patch removes the magic constant we used when calling
`trace_unwrap_exit()` or `map_err_trace_exit_unwrap()`.
We used to call it with `1` as parameter, where the number was the exit
code to use. Now the implementation of the function does it
automatically (using 1 (one) as exit code).
All calls of these functions were fixed. Thanks to vim this was easy.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-11 03:52:04 +01:00
Matthias Beyer
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
Matthias Beyer
9185abcfa5
Update copyright years
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-01-03 18:41:36 +01:00
Matthias Beyer
9fca66aa89
Forbid unsafe code in all crates
2018-11-11 13:05:55 +01:00
Matthias Beyer
4e516ee19d
Update version strings
...
...for the next release, which will be imag 0.10.0!
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-10 11:56:37 +01:00
Matthias Beyer
17d4123898
Update dependencies from git versions to proper versions.
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09 22:14:11 +01:00
Matthias Beyer
3a6443b3ef
Add ID reporting in imag-ids
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 20:33:30 +01:00
Matthias Beyer
70014e04b1
Move imag-ids to ID provider infrastructure
2018-11-06 20:33:30 +01:00
Matthias Beyer
3bf3a8890b
Add debugging output in test via logger
2018-11-01 20:36:46 +01:00
Matthias Beyer
279751b99c
imag-ids: Move from error-chain to failure
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-30 18:46:29 +01:00
Matthias Beyer
0d103653ea
Update about-text in imag-ids
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-17 11:37:24 +02:00
Matthias Beyer
3d12998603
Update dependency: toml-query: 0.6 -> 0.7
2018-09-27 15:05:44 +02:00
Matthias Beyer
430186799b
Remove store flush caching as it is not necessary anymore
2018-09-27 07:31:47 +02:00
Matthias Beyer
664edc7943
Update version string: 0.8.0 -> 0.9.0
2018-05-09 11:39:33 +02:00
Matthias Beyer
846de028cf
Add trace output in filtering process
2018-05-02 20:42:56 +02:00
Matthias Beyer
191f049ea8
Add language documentation in commandline help
2018-05-02 20:42:56 +02:00
Matthias Beyer
f618026305
Add store cache flushing after each 100st entry
2018-05-02 20:42:56 +02:00
Matthias Beyer
c27349e94f
Implement header filter language
2018-05-02 20:42:56 +02:00
Matthias Beyer
f4e1c0864c
Implement 'where' subcommand
2018-05-02 20:42:56 +02:00
Matthias Beyer
d518322401
Add notes how the filter language should look like
2018-05-02 20:42:56 +02:00
Matthias Beyer
74c982984c
Move collection filter to new module
2018-05-02 20:42:56 +02:00
Matthias Beyer
eaf8148cda
Refactor imag-ids to fit new store iterator interface
2018-05-01 17:44:01 +02:00
Matthias Beyer
6d21d8eb49
Update dependency: filters: 0.2 -> 0.3
2018-04-29 10:46:36 +02:00
Matthias Beyer
d2dceb6640
Update version numbers: 0.7.0 -> 0.8.0
2018-04-19 10:05:53 +02:00
Matthias Beyer
4568b1f625
Merge pull request #1380 from matthiasbeyer/minor
...
Minor patches
2018-04-18 16:46:41 +02:00
Matthias Beyer
98f8366e4c
Fix documentation in crate metadata
2018-04-17 15:55:08 +02:00
Mario Krehl
84e1cffbe3
Fix: use mod ui and remove unused imports
2018-04-14 14:19:28 +02:00
Mario Krehl
264a07239f
move the build_ui function of imag-ids into its own file
2018-04-14 14:19:28 +02:00
Matthias Beyer
76c8443e50
Merge pull request #1395 from matthiasbeyer/clap-text-wrap
...
Clap text wrap
2018-04-13 22:46:09 +02:00
Matthias Beyer
aeec10bf76
Use clap with wrap_help feature
2018-04-13 16:19:10 +02:00
Matthias Beyer
b59c234588
Use clap "^2.29" instead of ">=2.29"
2018-04-13 16:17:43 +02:00
Matthias Beyer
89cf979b13
Add functionality to filter for a collection
2018-04-13 11:25:59 +02:00
Matthias Beyer
64c8aee7fb
Add functionality to include store path (defaults to no)
2018-03-16 23:51:41 +01:00
Matthias Beyer
50461b839a
Use output stream from Runtime::stdout()
2018-03-04 13:57:44 +01:00
Matthias Beyer
dd8d4e6fa4
Add imag-ids core command
2018-02-20 13:37:10 +01:00