summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-diary/src/util.rs
AgeCommit message (Collapse)Author
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-01-01Update copyright years to 2015-2020Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-12Transform to error propagationMatthias Beyer
Transform codebase of imag-diary to propagate errors up to the main() function rather than calling exit(). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-01-03Update copyright yearsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-30imag-diary: Move from error-chain to failureMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-03-02Add "daily" supportMatthias Beyer
2018-02-20Fix order of evaluationMatthias Beyer
We need to evaluate the commandline argument first and if there is none, we use the default. This patch fixes that bug.
2018-02-07Update dates in license headerMatthias Beyer
And add missing header in one file
2018-02-04Add second support in imag-diary commandline interfaceMatthias Beyer
2017-10-31Fix calls to Runtime::config() to use direct resultMatthias Beyer
2017-09-14Add config parsing helpersMatthias Beyer
2017-08-27Reorganize code in subdirsMatthias Beyer