summaryrefslogtreecommitdiffstats
path: root/bin
AgeCommit message (Collapse)Author
2020-02-29Update versions: 0.10.0 -> 0.10.1Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2020-02-29Fix: Also write newlinesMatthias Beyer
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)
2020-02-16Fix: Allow "mark" subcommand to be passed IDs directly on CLIMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 7d971416d9a41da4b39a1291bb286fd5c81c2826)
2020-02-16Fix: Subcommand is named "deleted"Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit cc038ad8c772f286512f7eff2b8a96e89895398d)
2020-01-02Fix: Clap argument nameMatthias Beyer
The clap argument name is written with dashes instead of underscores. Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 1c8c02c904abd913ed7621fc43eecd57c4b7aeec)
2020-01-02Update copyright years to 2015-2020Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de> (cherry picked from commit 6708c223abde751a1a25f8ede2ccb7713c67d049)
2019-12-25Fix: Make "list" default command of imag-tagMatthias Beyer
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)
2019-12-25Fix: Drop habit before getting instancesMatthias Beyer
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)
2019-12-24Fix: Specify versionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Use closure as suggested by clippyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary to_string() callsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove lifetime specificationMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove len() != 0 comparison with negation and ::is_empty() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary return keywordMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary return keywordMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove identical conversionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary let bindingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove unnecessary clone() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Remove DebugResult and DebugOption helpersMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-23Replace map_dbg() and map_dbg_str() with context() and inspect() callsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Remove error conversion which is not necessary anymore.Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Merge branch 'imag-bookmark/open' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Merge branch 'imag-wiki/noexit' into masterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Add open command for imag-bookmarkMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite imag-wiki to propagate errors instead of calling exit()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Call clone() as late as possibleMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Do not call into_iter() when iter() is sufficientMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Do not call clone() on a Copy typeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite if-let binding to simple ifMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Use Iterator::flatten() instead of ::flat_map()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Remove not needed into_iter() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Use Default implementation for constructingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Allow clippy::wrong_self_convention here for better readable codeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite else block, return predicate directlyMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Simplify condition with iterator functionsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Collapse else-if blockMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Simplify conditionMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite for less cluttered codeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Bind value and simplify condition with itMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite filter(...).next().is_some() with .any(...)Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Rewrite closure for more structured and easy-to-read codeMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Use closure instead of always constructing objectMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Simplify condition by using iterator helper functionsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Use char instead of string literalMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Simplify assignmentMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Remove unused Error::from() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Remove not needed into_iter() callMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-12-22Remove let binding for unit valueMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>