ed457495c8
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>
51 lines
1.7 KiB
TOML
51 lines
1.7 KiB
TOML
[package]
|
|
name = "imag-edit"
|
|
version = "0.10.0"
|
|
authors = ["Matthias Beyer <mail@beyermatthias.de>"]
|
|
|
|
description = "Part of the imag core distribution: imag-edit command"
|
|
|
|
keywords = ["imag", "PIM", "personal", "information", "management"]
|
|
readme = "../../../README.md"
|
|
license = "LGPL-2.1"
|
|
|
|
documentation = "https://imag-pim.org/doc/"
|
|
repository = "https://github.com/matthiasbeyer/imag"
|
|
homepage = "http://imag-pim.org"
|
|
|
|
[badges]
|
|
travis-ci = { repository = "matthiasbeyer/imag" }
|
|
is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
|
|
is-it-maintained-open-issues = { repository = "matthiasbeyer/imag" }
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
[dependencies]
|
|
log = "0.4"
|
|
version = "3"
|
|
toml = "0.4"
|
|
toml-query = "0.8"
|
|
failure = "0.1"
|
|
|
|
libimagstore = { version = "0.10.0", path = "../../../lib/core/libimagstore" }
|
|
libimagrt = { version = "0.10.0", path = "../../../lib/core/libimagrt" }
|
|
libimagerror = { version = "0.10.0", path = "../../../lib/core/libimagerror" }
|
|
libimagutil = { version = "0.10.0", path = "../../../lib/etc/libimagutil" }
|
|
libimagentryedit = { version = "0.10.0", path = "../../../lib/entry/libimagentryedit" }
|
|
|
|
[dependencies.clap]
|
|
version = "^2.29"
|
|
default-features = false
|
|
features = ["color", "suggestions", "wrap_help"]
|
|
|
|
[dev-dependencies.libimagutil]
|
|
version = "0.10.0"
|
|
path = "../../../lib/etc/libimagutil"
|
|
default-features = false
|
|
features = ["testing"]
|
|
|
|
[dev-dependencies.libimagrt]
|
|
version = "0.10.0"
|
|
path = "../../../lib/core/libimagrt"
|
|
default-features = false
|
|
features = ["testing"]
|
|
|