f1142c414d
Use ok_or_else() instead of ok_or()
2018-04-25 19:15:07 +02:00
22170a0d55
Do not String::from(String)
2018-04-25 19:13:51 +02:00
6f5590713a
Use single quotes here
2018-04-25 19:13:51 +02:00
44521a7c8c
Dont use "return" keyword at end of function
2018-04-25 19:13:51 +02:00
dc18e650bb
Collapse nested if-else-if
2018-04-25 19:13:51 +02:00
67675b2ab2
Remove unecessary clone
2018-04-25 19:13:51 +02:00
a25f650ca0
Be more ergonomic here
2018-04-25 19:13:51 +02:00
84249e3fb5
Be less verbose when constructing an object
...
The rust compiler does some fancy things for us: It automatically finds
the right fields if the name of the variable and the file is the same.
Lets use that to reduce boilerplate with this patch.
2018-04-25 19:13:50 +02:00
154c2e482b
Change generate_variants() helper to use base by ref
2018-04-25 19:13:50 +02:00
42c4186dec
Use or_else() instead of or()
2018-04-25 19:13:50 +02:00
2b10ab0b36
Merge pull request #1450 from matthiasbeyer/libimagcontact/not-based-on-libimagentryref
...
libimagcontact: not based on libimagentryref
2018-04-25 14:59:37 +02:00
d6f8751f6e
Reimplement imag-contact
2018-04-25 13:45:00 +02:00
a83d10fb1e
Remove feature usage
2018-04-25 13:45:00 +02:00
80c07171aa
Make sure we can deserialize
...
Use default values when field is not there when we deserialize. This
does automatically the right thing.
2018-04-25 13:45:00 +02:00
56c1b78d93
Add getters for DeserVcard helper type
2018-04-25 13:45:00 +02:00
abc142f4b5
Rewrite library
...
libimagcontact stores all contact information in the entry header now.
2018-04-25 12:54:01 +02:00
3eab3af7b0
Remove all libimagentryref usage
2018-04-25 11:30:42 +02:00
5457834ea1
Merge pull request #1449 from matthiasbeyer/imag-contact/only-absolute-pathes-on-import
...
Deny non-absolut import pathes
2018-04-25 11:28:45 +02:00
b90abfb868
Deny non-absolut import pathes
2018-04-25 10:33:12 +02:00
0e567e2358
Merge pull request #1445 from matthiasbeyer/imag-view/seperator
...
imag-view argument to put seperator between shown entries
2018-04-25 10:01:36 +02:00
775508a6ed
Refactor: Use AsRef<str> instead of String as arg type
2018-04-24 23:12:14 +02:00
488ce9fe91
Clippy fixes
2018-04-24 23:12:14 +02:00
8ae689863d
Add clippy job
2018-04-24 23:12:14 +02:00
2ac4fa42b3
Merge pull request #1444 from matthiasbeyer/libimagstore/remove-backend-mapper
...
libimagstore: remove backend mapper
2018-04-24 23:08:30 +02:00
95a4816604
Implement imag-view argument to put seperator between shown entries
2018-04-24 22:49:53 +02:00
524c391ee0
Remove unused dependency
2018-04-24 22:16:40 +02:00
563c76c375
Remove "stdio" file abstraction from store implementation
2018-04-24 22:16:40 +02:00
19e0471f5b
Remove tests with JsonMapper in backend
2018-04-24 22:16:40 +02:00
ba453323ba
Remove support for changing store backend
2018-04-24 22:16:40 +02:00
be74afd031
Remove "dump" subcommand
2018-04-24 22:16:40 +02:00
16747aa257
Merge pull request #1442 from matthiasbeyer/imag-view/markdown-compile
...
imag-view: markdown compile
2018-04-24 19:48:38 +02:00
c2fd3fa94e
Add support for formatted markdown output
...
This patch also removes the (unused) "compile" subcommand and replaces
it with a flag "-c" / "--compile" which prints the output in formatted
to the terminal.
Compiling the output from markdown to HTML and showing in the browser is
not yet possible.
2018-04-24 18:06:45 +02:00
d12844aff0
Add markdown viewer functionality
2018-04-24 18:06:45 +02:00
f882f6eeaf
Merge pull request #1418 from matthiasbeyer/libimagentryview/pass-sink
...
Rewrite libimagentryview interface
2018-04-24 18:00:57 +02:00
279f7ef2aa
Fix: Pass output stream to view_entries()
2018-04-24 16:46:23 +02:00
653db333e6
Fix imag-view for new view_entry() interface
2018-04-24 16:46:23 +02:00
55d9b5456f
Adapt to new libimagentryview interface
...
And properly implement Viewer for DiaryViewer
2018-04-24 16:46:15 +02:00
780dd90c8f
Rewrite libimagentryview interface
...
In the previous versions, the sink (where the entries should be written
to) was not passed.
This did conflict with the libimagrt holding the stdout/stderr handles,
because it automatically writes to stdout (which we don't want to do in
some cases).
Passing the sink is way nicer. This patch changes libimagentryview so
that the sink is passed to the viewer.
2018-04-24 16:46:15 +02:00
726e4c515f
Merge pull request #1422 from matthiasbeyer/imag-git/init
...
imag-git: init
2018-04-24 15:26:19 +02:00
1fcd4f93ae
Merge pull request #1416 from matthiasbeyer/libimagstore/remove-retrieve-for-module
...
Remove: Store::retrieve_for_module
2018-04-24 15:26:10 +02:00
5666ef12d0
Rewrite to not use Store::retrieve_for_module()
2018-04-24 14:01:40 +02:00
470b061fad
Add imag-git in release script
2018-04-24 13:56:11 +02:00
8a5abb22f4
Generate completion for imag-git
2018-04-24 13:56:11 +02:00
055a55c9f0
Add imag-git command
2018-04-24 13:56:11 +02:00
2c52957b63
Replace call to retrieve_for_module() with entries()
...
The iterator type handles everything else.
2018-04-24 13:40:42 +02:00
09d34783cb
Fix imag-mail to list from appropriate collection
2018-04-24 13:40:42 +02:00
190da895f9
Do not use Store::retrieve_for_module() anymore here
2018-04-24 13:40:42 +02:00
22fb26dc12
Replace Store::retrieve_for_module() with own iterator type
2018-04-24 13:40:42 +02:00
007c02c2f1
Rewrite all_category_names() for removed Store::retrieve_for_module()
2018-04-24 13:40:42 +02:00
255f4211c9
Rewrite use of iterator with own iterator implementation
2018-04-24 13:40:42 +02:00