summaryrefslogtreecommitdiffstats
path: root/bin/domain/imag-timetrack
AgeCommit message (Collapse)Author
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-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: 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-06Add ID reporting in imag-timetrackMatthias Beyer
2018-10-30imag-timetrack: 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-08-26Fix: Binary nameMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-05-09Update version string: 0.8.0 -> 0.9.0Matthias Beyer
2018-04-29Update dependency: filters: 0.2 -> 0.3Matthias Beyer
2018-04-24Replace Store::retrieve_for_module() with own iterator typeMatthias 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-14Add lintsMatthias 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-04Use output stream from Runtime::stdout()Matthias Beyer
2018-02-19Refactor timetrack subcommands output for broken pipe errorsMatthias Beyer
2018-02-18Add timewarrior import scriptMatthias 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-12Add error chaining for compatibility with new libimagerror interfaceMatthias Beyer
2018-02-11Remove "get" iterator, store provides this nowMatthias Beyer
2018-02-11Add kairos support in "list" subcommandMatthias Beyer
This patch adds kairos support in the "list" subcommand for the "-f" and "-t" parameters which limit the entries to show. Something like imag timetrack list --from yesterday is now possible.
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
2018-01-29Refactor: MinifyMatthias Beyer
Pull in new dependencies for minification
2018-01-28Implement stopping all tags which are startedMatthias Beyer
2018-01-18Merge pull request #1166 from matthiasbeyer/log-0-4-0Matthias Beyer
Dependency update: log 0.4.0
2018-01-16Change list command to use a table for outputMatthias Beyer
2018-01-15log: 0.4.0-rc.1 -> 0.4.0Matthias Beyer
2018-01-15Update dependency: log: 0.3.* -> 0.4.0-rc.1Matthias Beyer
2018-01-13Call default command if no command is passedMatthias Beyer
2018-01-13Refactor: Split actual list implementation from argument processingMatthias 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-10-31Replace uses of try!() macro with "?" operatorMatthias Beyer
2017-10-31Add badges in Cargo.toml of all cratesMatthias Beyer