605b98276d
Run "cargo fix --all-features" in root of project
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-25 12:17:07 +02:00
c7ba2f6b16
travis: Add clippy/rustfmt job
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-25 12:17:07 +02:00
ce4a026858
Fix description
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-10 09:21:34 +02:00
ac6a38dc2d
Add new transitive dependency
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-10 09:21:21 +02:00
97583c6c54
Fix default.nix for new transitive dependency
...
The transitive dependency "onig_sys" needs the libclang path
set now.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-08-10 08:55:08 +02:00
598b6ec9a6
Merge branch 'imag-ids-split-into-more-tools' into master
2019-07-28 12:54:34 +02:00
fc5bfb43bf
Reimplement behaviour in imag-header
...
This patch changes imag-header to do not printing of the found values,
but simply filtering.
Chaining can then be used to read the values:
imag ids | imag header string "imag.version" | imag header read "imag.version"
for example.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-28 12:54:24 +02:00
121124b3ae
Fix operator
...
This should actually use OR instead of AND
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-28 12:53:41 +02:00
981c6f852e
Add imag-id-in-collection core command
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-28 11:08:42 +02:00
38021753a8
Remove in-collection filtering
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-28 10:49:47 +02:00
109292c65a
Remove "where" clause filtering
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-28 10:48:00 +02:00
5ec1a8a2d4
Merge branch 'refactor-runtime' into master-ff
2019-07-26 23:47:45 +02:00
0d1cfb6b4b
Refactor: Do not provide functions for these identifiers
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-26 23:20:50 +02:00
f1e14a0d46
Remove use of Runtime functions, hardcode strings
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-26 23:20:28 +02:00
flip1995
aa23fb485c
Fix match same arms bug found by clippy
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-26 23:05:09 +02:00
flip1995
8469fd5596
Fix float comparison bug found by clippy
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-26 23:05:09 +02:00
flip1995
2c26fd2753
Fix Hash vs PartialEq bug found by Clippy
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-26 23:05:09 +02:00
6ac6db57d1
Add imag-timetrack shell
...
This patch adds a subcommand to imag-timetrack which allows a user to
start a $SHELL and start a timetracking with it and as soon as the shell
exits, the timetracking is stopped.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25 20:32:33 +02:00
d5fd773da8
Change imag-wiki interface to be consistent with other commands
...
Use "list" instead of "ids" for listing ids in a wiki.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25 19:59:01 +02:00
1196f5395d
Add debug output
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25 19:53:41 +02:00
9c896eb98b
Add checks whether variables are valid unicode and propagate appropriate error
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-25 19:52:49 +02:00
5f10ab976f
Rewrite get_rtp_match() to not panic
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-24 21:32:21 +02:00
03fec5f4db
List diaries only if output is not a pipe
...
Beforehand, this command:
imag diary -d foo list | cat
listed each entry twice because the reporting feature of libimagrt
forwarded the list to stdout and the normal output was written to
stderr.
With this patch, we get the output only once in this case.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-21 10:42:27 +02:00
d53e306459
Merge branch 'imag-diagnostics-more-output' into master
2019-07-14 13:40:28 +02:00
ba77f5e8ba
Add cli validators for date and datetime
2019-07-14 12:29:31 +02:00
ce9fb3c370
Fix for update to latest itertools
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-14 12:07:41 +02:00
8bf6e66d41
Fix for update to new version of mdcat
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-07-09 21:28:29 +02:00
be0436064c
Remove uneccessary call to iter()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 19:47:28 +02:00
b5d439cef7
Add imag-diagnostics --more output switch
...
For more output, which is right now: List unverified entries.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 19:38:50 +02:00
c09c5b8bad
Remove use of Itertools
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 19:27:54 +02:00
2185d44011
Update all dependencies
...
This patch updates all dependencies but not "nom".
Done with `cargo upgrade --all` and manual editing.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 16:44:23 +02:00
f1ad450033
Rewrite changelog generator script
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 13:24:31 +02:00
6b8c236b67
Merge branch 'libimaghabit-dont-copy-comment-to-instance' into master
2019-06-30 13:14:36 +02:00
a9bde370a3
Merge branch 'imag-log-show-multiple-sort-by-date' into master
2019-06-30 13:14:24 +02:00
f3c41915fd
Do not create comment in habit instance
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 11:34:50 +02:00
62d6b54542
Adapt imag-habit impl for HabitInstance::get_comment()
...
The implementation of `HabitInstance::get_comment()` was changed and
therefore its semantics were changed.
This patch adapts the call to the function for the new signature and
implications.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 11:31:56 +02:00
191b535479
Change HabitInstance implementation to not contain comment in instance
...
This patch changes the HabitInstance implementation so that the comment
is not expected to exist in the instance object itself.
This is done for less data duplication.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 11:31:49 +02:00
82c2beafbb
Add "done" marker in "list" output
...
This patch adds a marker in the table when using the "list" command
which marks when the task is already done for the list entry.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 11:09:18 +02:00
32c5ec1e00
Fix: Sort by date, not by id
...
This patch fixes a bug. We stated in the helptext of the "show" command
that when showing several logs, we sort by date. This was not true as we
sorted by Id, which also included the name of the log, hence we
effectively sorted by name.
This patch fixes that. Output is not sorted by date.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 10:57:21 +02:00
a21d4b7122
Add DiaryId::get_date_representation() function
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-30 10:56:55 +02:00
57039654ca
Merge branch 'libimagentrytag-refactor' into master
2019-06-29 22:54:26 +02:00
0d5027051d
Fix: Location of tags should not change in the refactoring
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
bd564ad209
Add tests
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
3eff42be5a
Update dependency: toml-query: 0.9.2 for index-out-of-bounds fixes
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
ae9fbe866f
Add test whether setting tags works
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
c5519da011
Tagable should not be implemented for Value
...
Oh my dear, what was I thinking?
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
51dad94cc9
Simplify implementation of has_tags()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
08ba6c68a6
Remove unused imports
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
59bea23004
Simplify implementation of has_tag()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00
87bfb422dc
Simplify implementation of remove_tag()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2019-06-29 21:36:59 +02:00