summaryrefslogtreecommitdiffstats
path: root/bin/domain
AgeCommit message (Collapse)Author
2019-05-17Add duration listing in imag-timetrackMatthias Beyer
This patch adds the -d / --show-duration feature to the "list" subcommand, which makes imag-timetrack list the duration of the timetracking in the output. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-05-11Merge branch 'imag-contact-edit-retry' into master-ffMatthias Beyer
2019-05-11Remove unused constantMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-05-11Add support for looping over editMatthias Beyer
This patch adds a imag-contact feature where we loop as long as we cannot parse the vcard. If the `--no-retry` flag is passed, we fail immediately. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-04-27Merge branch 'minor' into masterMatthias Beyer
2019-04-27Add debug outputMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-04-22Add contact editing.Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-04-22Refactor: Move contact-by-hash finding to utilsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-04-22Add force-override option to "imag-contact import"Matthias Beyer
This patch adds the option to force-override the ref data in the imported entries. This is necessary when importing contact data which is already in the store, but where the reference data has changed (for example if the hash of the file has changed, this might come in handy at some point). Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-04-22Rewrite imag-contact to handle reference storingMatthias Beyer
This patch rewrites the imag-contact binary to be able to work with the new libimagcontact interface, which now uses libimagentryref for storing references to the actual vcard files. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-20Move helper function to libimagentref::utilMatthias Beyer
This moves the helper function for getting the `Config` object from the configuration file via the runtime. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-20Rewrite imag-mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-20Revert "Remove imag-mail"Matthias Beyer
This reverts commit f9a980c344227898df1fec54a41c84275f7325b2. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-17Remove imag-mailMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-15Adapt to new all_contacts() return typeMatthias Beyer
because we return `libimagstore::iter::Entries` here now, we do not have to pass the store anymore. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-15Fix: Also print if runtime ignores IDsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
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-11Do not print table if table is empty anywaysMatthias Beyer
When listing timetrackings, we do not want to print an empty table if there aren't any timetrackings. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-11Add wrapping functionality for imag-logMatthias Beyer
This patch adds a wrapping functionality to imag-log. The commandline parameter `-w` or `--wrap` can not be used to wrap the output at N characters, defaulting to 80 characters. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-11Strip whitespace on the right when printingMatthias 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-11Optimize: Do not attempt to print if output is a pipeMatthias Beyer
This is a small optimization so that we do not print the information if the output is a pipe anyways. 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-02-09Fix: We go to the next month, not to the current oneMatthias Beyer
The filter filters from now to the first second of the next month, not the first second of the current month. Hence we have to add one here. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-02-09Fix: 'start-time' cannot be NoneMatthias Beyer
The UI is configured to require the 'start-time' parameter, so we do not need to check for None here. 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-09Rewrite debug calls with DebugOption extensionMatthias Beyer
2018-11-09Remove unused parameterMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07Make code more functional by more function chainingMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07Make code more functional by more function chaining.Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07Rewrite iteration without collecting inbetweenMatthias Beyer
Because why not? Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07Refactor code to be more idomaticMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06Add ID reporting in imag-timetrackMatthias Beyer
2018-11-06Add ID reporting in imag-mailMatthias Beyer
2018-11-06Add ID reporting in imag-habitMatthias Beyer
2018-11-06Add ID reporting in imag-wikiMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06Add ID reporting in imag-logMatthias Beyer
2018-11-06Add ID reporting in imag-notesMatthias Beyer
2018-11-06Add id reporting in imag-diaryMatthias Beyer
2018-11-06Add id reporting in imag-contactMatthias Beyer
2018-11-06Add ID reporting in imag-bookmarkMatthias 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-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>