8d0ae1058e
Make code more functional by more function chaining
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 13:51:42 +01:00
07cbecc1ba
Make code more functional by more function chaining.
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 13:51:28 +01:00
d8a6e9ca9a
Rewrite iteration without collecting inbetween
...
Because why not?
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 12:48:35 +01:00
8e1768b424
Refactor code to be more idomatic
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-07 11:52:31 +01:00
345970d36b
Import new dependencies
...
Because of the changes in the "src/ui.rs" files in the binary
implementations, we have new dependencies we need to import into the
build-script of the "imag" command, so that it can build the
commandline.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 20:35:18 +01:00
f6483f54db
Add ID reporting in imag-timetrack
2018-11-06 20:35:18 +01:00
be56f9fe75
Add ID reporting in imag-mail
2018-11-06 20:35:18 +01:00
f20298cbe8
Add ID reporting in imag-store
2018-11-06 20:35:18 +01:00
c616a5cfaf
Add ID reporting in imag-ref
2018-11-06 20:35:18 +01:00
502cdf5721
Add ID reporting in imag-habit
2018-11-06 20:35:18 +01:00
96ad41ea4c
Add ID reporting in imag-mv
2018-11-06 20:35:18 +01:00
f3a03efd5d
Add ID reporting in imag-wiki
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 20:35:18 +01:00
860c58cbdf
Add ID reporting in imag-log
2018-11-06 20:35:18 +01:00
eceae358f8
Add ID reporting in imag-notes
2018-11-06 20:35:18 +01:00
2ca6be8322
Add id reporting in imag-diary
2018-11-06 20:35:18 +01:00
8523ae2120
Add id reporting in imag-contact
2018-11-06 20:34:46 +01:00
344aae5f92
Add ID reporting in imag-bookmark
2018-11-06 20:33:30 +01:00
1e6d58bf4c
Add ID reporting in imag-view
2018-11-06 20:33:30 +01:00
d3400167df
Add ID reporting in imag-tag
2018-11-06 20:33:30 +01:00
aef969f8bb
Add ID reporting in imag-link
2018-11-06 20:33:30 +01:00
4e5315b0e5
Add ID reporting in imag-grep
2018-11-06 20:33:30 +01:00
ff809a3750
Add ID reporting in imag-gps
2018-11-06 20:33:30 +01:00
3a6443b3ef
Add ID reporting in imag-ids
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 20:33:30 +01:00
274811243f
Move imag-view to ID provider infrastructure
2018-11-06 20:33:30 +01:00
f83d72033f
Move imag-tag to ID provider infrastructure
2018-11-06 20:33:30 +01:00
527e0310ae
Move imag-link to ID provider infrastructure
2018-11-06 20:33:30 +01:00
4856541f5a
Move imag-gps to ID provider infrastructure
2018-11-06 20:33:30 +01:00
70014e04b1
Move imag-ids to ID provider infrastructure
2018-11-06 20:33:30 +01:00
a805db2a88
Move imag-edit to ID provider infrastructure
2018-11-06 20:33:30 +01:00
30036d5628
Move imag-category to ID provider infrastructure
2018-11-06 20:33:30 +01:00
01de94a387
Move imag-annotate to ID provider infrastructure
2018-11-06 20:33:30 +01:00
17913ae3fd
Optimize implementation: Less matches
...
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-06 14:48:49 +01:00
1321f49428
Optimize implementation
...
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-06 14:48:49 +01:00
d004c667fd
Optimize implementation
...
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-06 14:48:49 +01:00
5210985bf4
Optimize implementation
...
This does optimize the implementation of the list command implementation
(code-structure wise, not performance wise).
Functionality not altered.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-06 14:48:49 +01:00
1347784898
Merge branch 'safe-output'
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-01 21:22:26 +01:00
3bf3a8890b
Add debugging output in test via logger
2018-11-01 20:36:46 +01:00
089d5b98cb
Use error output from runtime to print error
2018-11-01 20:36:34 +01:00
afeb4031ac
Use runtime provided error stream
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-01 20:34:58 +01:00
8223f846b4
Use new "ask" function interface with input/output stream params
...
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-11-01 20:33:24 +01:00
32f38945f0
Fix tests: Do not pass "internal", subcommand does not exist anymore
2018-11-01 13:15:19 +01:00
e39bd7fc72
Merge branch 'fix-flag-forwarding'
...
Conflicts were handled manually.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-11-01 00:09:54 +01:00
25ee6f2ce4
Fix: Forward flags as well
...
This is a bugfix. The old implementation did not forward simple
commandline flags (as in `--debug`, arguments with no value) because it
only used `ArgMatches::value_of()`. But if there is no value, the method
returns `None` and the flag is not forwarded.
This patch fixes that issue.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-31 23:12:35 +01:00
c4c52e43a6
Add some debugging output
2018-10-31 23:11:06 +01:00
e4ffeddf85
Use libimagrt logging
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-31 23:10:26 +01:00
21927d4225
imag build script: Update available commands
2018-10-31 17:15:29 +01:00
aff5059652
imag-todo: Move from error-chain to failure
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-30 18:46:29 +01:00
5821a55c14
imag-mail: Move from error-chain to failure
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-30 18:46:29 +01:00
fd2367b849
imag-timetrack: Move from error-chain to failure
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-30 18:46:29 +01:00
d7eda6c451
imag-log: Move from error-chain to failure
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2018-10-30 18:46:29 +01:00