summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-habit
AgeCommit message (Collapse)Author
2019-02-11Fix negation errorMatthias Beyer
We Iterator::filter here, so we have to negate - because we list everything where _no_ instance exists yet. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-11Add debug outputMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-11Remove magic constants in trace_unwrap_exit/map_err_trace_exit_unwrap callsMatthias Beyer
This patch removes the magic constant we used when calling `trace_unwrap_exit()` or `map_err_trace_exit_unwrap()`. We used to call it with `1` as parameter, where the number was the exit code to use. Now the implementation of the function does it automatically (using 1 (one) as exit code). All calls of these functions were fixed. Thanks to vim this was easy. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-11Change id reporting API to return ExitCodeMatthias Beyer
Because this API only errors when write!() errors occur, we can return the exit code as an error here. This way the user of the API can immediately exit if there was an IO error, but the API automatically takes care of the right return value, returning (exiting) with zero (0) if there was an "Broken pipe" error and with one (1) otherwise, which is the expected behaviour here. All calls to that API were changed accordingly. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-09Fix: "status" subcommand might not be presentMatthias Beyer
If we call 'imag-habit' without a subcommand, we assume "today". Thus it might occur that the "status" subcommand match is not present, hence we have to assume `false` here as default value. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-01-03Update copyright yearsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-11Forbid unsafe code in all cratesMatthias Beyer
2018-11-10Update version stringsMatthias Beyer
...for the next release, which will be imag 0.10.0! Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09Update dependencies from git versions to proper versions.Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-09Make code more idomaticMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06Add ID reporting in imag-habitMatthias Beyer
2018-11-06Optimize implementation: Less matchesMatthias Beyer
This patch simplifies the code to be not three nested matches but rather one match and then some function chaining. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-01Use new "ask" function interface with input/output stream paramsMatthias Beyer
In the imag-contact crate we had to rewrite the ask_continue!{} macro as a function for less headache, but besides that this is a rather straight-forward patch for adapting to the new interface. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-30imag-habit: Move from error-chain to failureMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-06Update dependency: prettytable: 0.6 -> 0.8Matthias Beyer
2018-10-06Update dependency: prettytable: 0.6 -> 0.8Matthias Beyer
2018-09-27Update kairos to master branchMatthias Beyer
Because of the new error-chain version which kairos can depend on, for which kairos is not yet released.
2018-09-27Update dependency: kairos: 0.1 -> 0.2Matthias Beyer
2018-09-27Update dependency: log: 0.3 -> 0.4Matthias Beyer
2018-09-27Update dependency: toml-query: 0.6 -> 0.7Matthias Beyer
2018-06-27Fix: Use unused resultMatthias Beyer
2018-05-09Update version string: 0.8.0 -> 0.9.0Matthias Beyer
2018-05-01Refactor imag-habit to new store iterator interfaceMatthias Beyer
2018-04-19Update version numbers: 0.7.0 -> 0.8.0Matthias Beyer
2018-04-18Merge pull request #1380 from matthiasbeyer/minorMatthias Beyer
Minor patches
2018-04-17Fix documentation in crate metadataMatthias Beyer
2018-04-13Use clap with wrap_help featureMatthias Beyer
2018-04-13Use clap "^2.29" instead of ">=2.29"Matthias Beyer
2018-04-04Handle unknown subcommands in binaries with Runtime::handle_unknown_subcommandMatthias Beyer
2018-03-22Use variable mutable, so we can create an instanceMatthias Beyer
2018-03-22Add parameter to show done habitsMatthias Beyer
2018-03-04Use output stream from Runtime::stdout()Matthias Beyer
2018-02-20Remove usage of libimagentrylistMatthias Beyer
2018-02-19Fix for broken pipe panicsMatthias Beyer
2018-02-18Add debug output what is about to be doneMatthias Beyer
2018-02-13Use new make_imag_version!() macro for building version stringMatthias Beyer
2018-02-11Update version string: 0.6.0 -> 0.7.0Matthias Beyer
2018-02-11Merge pull request #1275 from matthiasbeyer/clap-featuresMatthias Beyer
Clap features
2018-02-10Do not print "Ok" after successful executionMatthias Beyer
2018-02-10Update dependency: clap: 2.17 -> 2.29Matthias Beyer
2018-02-10Compile clap with suggestions and color supportMatthias Beyer
2018-02-10Add missing Cargo.toml metadataMatthias Beyer
2018-02-07Update dates in license headerMatthias Beyer
And add missing header in one file
2018-02-05Update kairos dependency: 0.1.0-beta-2 -> 0.1.0Matthias Beyer
2018-02-01Move date <-> string conversion utility to libimagutilMatthias Beyer
2018-01-13Update dependency: toml-query -> 0.6Matthias Beyer
2018-01-12Remove dependency "version"Matthias Beyer
Because the "version" crate is licensed as GPL, which would us require to release imag as GPL, we remove the crate now.
2017-12-25Update version strings: 0.5.0 -> 0.6.0Matthias Beyer
2017-12-22Change UI. Positional args are not possible hereMatthias Beyer
2017-12-22Add functionality so we can create a habit with a due dateMatthias Beyer