Age | Commit message (Collapse) | Author |
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Because cargo-deny fails to compile right now, we disable it here.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 859e396ed10816dc7a10756c8b61283eab6a981d)
|
|
Because of multiple requests, this patch adds the Cargo.lock file into
the repository.
This File will _not_ land on master anytime soon. I will not clutter my
history with unecessary Cargo.lock update patches. I will, though, from
now on, update this file on the release branches.
Thus, every released version of imag will contain the Cargo.lock file in
the release.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Fixes: e7e5d306458 ("Remove calls to exit() and replace them with error propagation up to main()")
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 94a830cdc2c09dd068e9a5d2b51c8a99b444a33e)
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 7d971416d9a41da4b39a1291bb286fd5c81c2826)
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit cc038ad8c772f286512f7eff2b8a96e89895398d)
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 865b66ef6521aab1941eb4ead306a864884a0a41)
|
|
We did assume that the file contained valid UTF8 when reading to `String`.
Now we read to a byte buffer, which removes the (wrong) assumtion.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 9c249dbeea23ce7c12706ee614d42034aacbf8a6)
|
|
The clap argument name is written with dashes instead of underscores.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 1c8c02c904abd913ed7621fc43eecd57c4b7aeec)
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 6708c223abde751a1a25f8ede2ccb7713c67d049)
|
|
This patch removes the leakage in the runtime application abstraction.
Also fix formatting.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 9f2a67841a4ca37b0c95e5eb2b6558a6981785a6)
|
|
The "list" command is advertised as default command for imag-tag. This
commit fixes the implementation so that the binary actually behaves this
way.
For this, the list() function gets a new parameter which tells it
whether there is a subcommand object to be expected in the Runtime.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 708c7b26b12364434316a5435b01a2c3869bfc6f)
|
|
Because when showing an instance, we try to get the comment for the
instance from the habit template, which tries to Store::get() the
template in HabitInstance::get_comment().
This fails if the template is already borrowed, thus drop the borrow
before the whole thing.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
(cherry picked from commit 0cac7ec15774f8381e2c260e37754e17788875f2)
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
This fixes a bug where a broken pipe in Runtime::report_touched()
resulted in an Err(_) raised up to main() which then reported this.
But as report_touched() should ignore a broken pipe (because the program
will exit anyways shortly after the call), we can safely ignore this
error.
This also results in `ExitCode` removed from the function signature,
which pushes us forward to the removal of custom error-handling
implementations!
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|
|
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
|