42c4186dec
Use or_else() instead of or()
2018-04-25 19:13:50 +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
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
bae9188a08
Remove GlobStoreIdIterator helper iterator type
2018-04-24 13:40:42 +02:00
d70092d691
Remove: Store::retrieve_for_module
2018-04-24 13:40:42 +02:00
cbdfb02423
Merge pull request #1441 from matthiasbeyer/fix-tmpcommit-detection-script
...
Fix checker script for travis
2018-04-24 11:25:21 +02:00
7e078108ba
Fix tmpcommit-detection script for travis
2018-04-23 14:52:20 +02:00
7d3224a258
Merge pull request #1437 from matthiasbeyer/imag/fix-doubled-output
...
Fix: Do not inherit stdout here
2018-04-22 16:12:32 +02:00
9303a72a28
Merge pull request #1436 from matthiasbeyer/imag-log/show-ordered
...
Fix: imag-log show should order by datetime
2018-04-22 15:55:25 +02:00
c3fe934119
Merge pull request #1435 from matthiasbeyer/imag-view/fix-autowrapping
...
Fix: Do not automatically wrap text
2018-04-22 15:55:19 +02:00
93226ce987
Merge pull request #1434 from matthiasbeyer/libimagdiary/fix-youngest-entry
...
Fix: get_youngest_entry_id()
2018-04-22 15:06:26 +02:00
32a14db059
Merge pull request #1426 from matthiasbeyer/remove-version-dependency
...
Do not depend on "version" crate
2018-04-22 14:39:15 +02:00
909240fc24
Fix: Do not inherit stdout here
...
This caused us to print funny output. But we want to catch the output
and print a nice list ourselves here.
2018-04-22 14:37:56 +02:00
ee75d2309c
Fix: imag-log show should order by datetime
2018-04-22 14:33:53 +02:00
10b71864f6
Fix: Do not automatically wrap text
...
We must use `ArgMatches::occurrences_of` here to check whether the
argument was actually passed.
If it was not passed, we do not wrap at all.
2018-04-22 14:17:12 +02:00
86b60295ee
Fix: get_youngest_entry_id()
...
We need to reverse the iterator for getting the _youngest_ entry here.
Also seems to fix the issue that imag-diary edit -d <date> did not work
properly.
2018-04-22 14:11:19 +02:00
bfbb1dfb74
Integrate version-updated script
2018-04-22 13:38:24 +02:00
ededece3f7
Add script for CI check if version is updated
2018-04-22 13:38:24 +02:00
c6dc6d2bee
Modify release script to enforce version updated
2018-04-22 13:38:24 +02:00
19940d3e1c
Set version string by hand here if we do not build with cargo
2018-04-22 13:38:24 +02:00
a343a2ab90
Do not use version crate in build script
2018-04-22 11:09:31 +02:00
d742e15763
Do not depend on "version" crate
...
We should not depend on the version crate, as it is GPL licensed.
We removed the usage of this crate before, but it was still in the
Cargo.toml files (despite being used in the source).
2018-04-22 11:09:31 +02:00
495ad62be6
Merge pull request #1425 from matthiasbeyer/libimagrt/update-log
...
Update dependency: log: 0.4.0-rc.1 -> 0.4
2018-04-20 22:53:49 +02:00