summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2020-04-13Fix: Collapse nested ifminorMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-04-13Fix: Do not write data if output is pipeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-04-13Fix: Do not print data if output is pipe, except if that behaviour is overriddenMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> Fixes: b48c45ec4ba2 ("Change implementation to use the iterator extensions")
2020-04-13Fix: import anyhow::Error where it is neededMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-04-11Merge branch 'srht-builds' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-30Add nixos based build on sourcehutMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-30Add ci.nix for nix based CI environmentMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-30Add clippy job to debian buildMatthias Beyer
2020-03-30Remove the "check" phase, as we do not really need it in CIMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-30Add build script for debian based builds for srhtMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-03-29Implement piping for imag-grepMatthias 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>