summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-03-29WIPimag-link-chainMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-25Merge branch 'update-mdcat' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-25Update travis: rustc minimum version is 1.40.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Update mdcat 0.13.0 -> 0.15.0Matthias Beyer
Make version restriction for syntect less strict, as mdcat pins it to a certain version, and we only need it to actually invoke mdcat itself. So no problem with that lax requirement. Because mdcat updated its version of pulldown-cmark, we have to update here as well. We also had to adapt our error handling, because mdcat chooses to return a Box<dyn Error>, which is absolutely garbage for us here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Merge branch 'update-toml-query' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Merge branch 'blackhole-stdout-when-piping' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Fix: Return actual length of bufferMatthias Beyer
The function has to return the number of bytes in the buffer, so return the length of the buffer here. Still, the contents are ignored and not written to any destination. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Add blackhole as default cli optionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Update toml-query: 0.9.2 -> 0.10.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Revert "Move to toml-query from master branch"Matthias Beyer
This reverts commit f7fadc118f2de7e84cef8c6d4103296289564f74. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Fix clippy warning: next() instead of nth(0)Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-24Fix clippy warning: next() instead of nth(0)Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-08Merge branch 'replace-failure-with-anyhow'Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-08Implement Into<anyhow::Error> for ErrorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-08Move to kairos from master branch for nowMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-08Move to toml-query from master branchMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-08Move libimagerror to thiserrorMatthias Beyer
In this patch, the error output (tracing) algorithm was changed, but should essentially print the same information. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-08Replace failure with anyhow in complete codebaseMatthias Beyer
This patch was scripted with sed -i 's/use failure::Error/use anyhow::Error/' $(rg "use failure::Error" -l) sed -i 's/use failure::Fallible as /use anyhow::/' $(rg "use failure::Fallible" -l) sed -i 's/failure/anyhow/' $(rg "failure *=" -l) sed -i 's/format_err!/anyhow!/' $(rg "format_err!" -l) sed -i 's/use failure::ResultExt/use anyhow::Context/' $(rg "use failure::ResultExt" -l) sed -i 's/err_msg/anyhow!/' $(rg "use failure::err_msg" -l) sed -i 's/^anyhow\ *=.*$/anyhow = "1"/' $(rg "anyhow * =" -l) sed -i 's/^anyhow_derive.*//' $(rg "anyhow_derive" -l) sed -i 's/extern crate failure/extern crate anyhow/' $(rg "extern crate failure" -l) sed -i 's/.*extern crate anyhow_derive.*//' $(rg "anyhow_derive" -l) Some manual changes were added as well, so this patch was not completely scripted, but mostly. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-07Merge branch 'cleanup-libimagerror'Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused str error handling moduleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused io error handling codeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused ExitUnwrap traitMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-06Remove unused iter extensionsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add more trace output for Viewer implementationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Change implementation to use the iterator extensionsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Merge branch 'viewing-iterator' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Optimize: Stop iteration for viewing on broken pipe errorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add viewer for viewing all entries from an iteratorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Merge branch 'rt-reporting-iterator' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Fix: Also print if output is a data pipeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add more trace outputMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Add iterator extension for reporting from iteratorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Fix: Simplify selecting what to printMatthias Beyer
The logic before that change was a bit bogus, as it printed stuff which was not expected. Now, things are cleared up: * Without -P, pending todos are always printed * With --deleted, deleted todos are printed * With -D / --done, done todos are printed * With -H / --hidden, hidden todos are printed No option influences the other. Therefore, the --deleted flag had to be added to the CLI. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Merge branch 'runtime-more-io-control' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Update tests for new runtime flagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Update docs for new runtime flagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Adapt flag forwarding to new runtime flagsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Use more fine-granular function as Runtime::ignore_ids() was removedMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-01Allow more fine-granular control over IO behaviour in runtimeMatthias Beyer
This patch removes the --ignore-ids option and adds --pipe-input / -I and --pipe-output / -O instead. The behaviour of -IO is the same as --ignore-ids was before, but this change gives the user the option to enable only one of both (input or output, or both). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Merge branch 'update-indicatif' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Add some scopes for better readabilityMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Include progressbar in iteratorMatthias Beyer
indicatif got a new feature where the iterator can be used directly with the ProgressBar object. Change the code to use that. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Update indicatif: 0.12.0 -> 0.14.0Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Fix: Disable cargo-denyMatthias Beyer
Because cargo-deny fails to compile right now, we disable it here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Fix: Also write newlinesMatthias Beyer
Fixes: e7e5d306458 ("Remove calls to exit() and replace them with error propagation up to main()") Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Merge branch 'imag-unstable' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Get the program name from the name of the executableMatthias Beyer
This enables us, during the development phase, to install in-development binaries as "imag-unstable-<command>" (for example), so that we have "imag" as a release binary in PATH and "imag-unstable" as a development binary in PATH. The change also enables the "imag" binary itself (if it is named "imag-unstable" for example) to call imag-unstable subcommands, because it calls "<own binary name>-<command>", for example "imag-unstable-diary" instead of "imag-diary". Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Use existing variable instead of hardcoding appnameMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Merge branch 'update-travis-dist' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-28Merge branch 'logger/remove-modules' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>