summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-diary
AgeCommit message (Collapse)Author
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-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-09Rewrite debug calls with DebugOption extensionMatthias Beyer
2018-11-09Remove unused parameterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06Add id reporting in imag-diaryMatthias Beyer
2018-11-06Optimize implementationMatthias Beyer
Code-wise, the functionality was not changed. The changes only make the code much more pretty. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06Optimize implementationMatthias Beyer
Code-wise, the functionality was not changed. The changes only make the code much more pretty. 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-diary: Move from error-chain to failureMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-09-27Update dependency: toml-query: 0.6 -> 0.7Matthias Beyer
2018-07-20Fix: Do not create entries with Store::retrieve()Matthias Beyer
This patch fixes a bug where entries where created with `Store::retrieve()` rather than with the API from libimagdiary. This caused headers to be missing. Now, the CLI is parsed for the values passed and a NaiveDateTime object is crafted from that, which is then passed to libimagdiary.
2018-07-20Add functionality to create entry at a certain timeMatthias Beyer
2018-05-09Update version string: 0.8.0 -> 0.9.0Matthias Beyer
2018-05-01Refactor imag-diary to new store iterator interfaceMatthias Beyer
2018-04-30Remove the edit commandMatthias Beyer
The edit command of imag-diary gets removed by this patch. The rationale is that imag-edit is way more powerful and thus, not every other imag module should implement an edit command. Chaining `imag-diary list` and `imag edit -I` is encouraged. We still need the edit functionality in imag-diary, as `imag diary create` shall spawn an editor, still. We only remove the ability for editing of existing entries with this patch.
2018-04-24Fix: Pass output stream to view_entries()Matthias Beyer
2018-04-19Add functionality to list diariesMatthias Beyer
2018-04-19Update version numbers: 0.7.0 -> 0.8.0Matthias Beyer
2018-04-18Fix: Use fill storeid when listingMatthias Beyer
2018-04-18Merge pull request #1380 from matthiasbeyer/minorMatthias Beyer
Minor patches
2018-04-17Fix documentation in crate metadataMatthias Beyer
2018-04-14Fix: Use qualificationMatthias Beyer
2018-04-13Merge pull request #1395 from matthiasbeyer/clap-text-wrapMatthias Beyer
Clap text wrap
2018-04-13Use clap with wrap_help featureMatthias Beyer
2018-04-13Use clap "^2.29" instead of ">=2.29"Matthias Beyer
2018-04-13Fix: List ids sortedMatthias Beyer
2018-04-04Handle unknown subcommands in binaries with Runtime::handle_unknown_subcommandMatthias Beyer
2018-03-04Use generate_runtime_setup() to create Runtime objectMatthias Beyer
2018-03-04Use output stream from Runtime::stdout()Matthias Beyer
2018-03-03Merge pull request #1321 from ↵Matthias Beyer
matthiasbeyer/libimagdiary/not-on-retrieve-for-module libimagdiary: Do not rely on Store::retrieve_for_module
2018-03-02Add "daily" supportMatthias Beyer
2018-03-02Fix: Hourly/Minutely should set minute/second to zeroMatthias Beyer
2018-03-02Rewrite imag-diary for new Diary::entries() interfaceMatthias Beyer
2018-02-20Merge pull request #1303 from ↵Matthias Beyer
matthiasbeyer/imag-diary/fix-list-diary-name-passing Fix order of evaluation
2018-02-20Fix order of evaluationMatthias Beyer
We need to evaluate the commandline argument first and if there is none, we use the default. This patch fixes that bug.
2018-02-20Remove usage of libimagentrylistMatthias Beyer
2018-02-19Fix broken pipe panicsMatthias Beyer
2018-02-19Fix broken pipe panicsMatthias Beyer
2018-02-18Refactor imag-diaryMatthias Beyer
2018-02-18Merge pull request #1224 from matthiasbeyer/git-version-in-versionMatthias Beyer
Git version in version
2018-02-13Use new make_imag_version!() macro for building version stringMatthias Beyer
2018-02-12Refactor imag-diary to use new error handling interfaceMatthias Beyer
2018-02-11Update version string: 0.6.0 -> 0.7.0Matthias Beyer
2018-02-10Update dependency: clap: 2.17 -> 2.29Matthias Beyer
2018-02-10Compile clap with suggestions and color supportMatthias Beyer
2018-02-07Update dates in license headerMatthias Beyer
And add missing header in one file