~matthiasbeyer/imag

ref: 6bc08b60e6e3a99cc9a263713db33061d63dc964 imag/bin/core d---------
Merge branch 'update-deps' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
handlebars: 2 -> 3

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Replace repository with new sourcehut repo

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: Collapse nested if

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: Do not write data if output is pipe

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Implement piping for imag-grep

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'update-toml-query' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Update toml-query: 0.9.2 -> 0.10.0

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Revert "Move to toml-query from master branch"

This reverts commit f7fadc118f2de7e84cef8c6d4103296289564f74.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'replace-failure-with-anyhow'

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Move to toml-query from master branch

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Replace failure with anyhow in complete codebase

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>
Merge branch 'runtime-more-io-control' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Adapt flag forwarding to new runtime flags

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'update-indicatif' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Add some scopes for better readability

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Include progressbar in iterator

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>
Update indicatif: 0.12.0 -> 0.14.0

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: Also write newlines

Fixes: e7e5d306458 ("Remove calls to exit() and replace them with error propagation up to main()")
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'imag-unstable' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Get the program name from the name of the executable

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>
Next