imag/bin/core/imag-edit
Leon Schuermann ed457495c8 Introduce proper error handling in IdPathProvider
Prior to this change, the IdPathProvider implementation would be
responsible for exiting the process on insufficient / wrong arguments.
However, such error handling should be performed together with the
business logic and not in CLI-parsing related code.

This change introduces a clear separation: both parsing errors and
insufficient id path arguments can now be return from inside the
`get_ids`-method, and get passed up to the application logic to be
handled.

This change is reflected in all instances of IdPathProvider and their
surrounding code.

Signed-off-by: Leon Schuermann <leon.git@is.currently.online>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-05-24 21:03:34 +02:00
..
src Introduce proper error handling in IdPathProvider 2019-05-24 21:03:34 +02:00
Cargo.toml Introduce proper error handling in IdPathProvider 2019-05-24 21:03:34 +02:00
README.md Add imag-edit command 2018-01-09 11:56:22 +01:00

README.md

Edit

The imag-edit command is for simply editing store entries with the $EDITOR.

It is based on libimagentryedit (@sec:lib:entryedit).