Matthias Beyer
f882f6eeaf
Merge pull request #1418 from matthiasbeyer/libimagentryview/pass-sink
...
Rewrite libimagentryview interface
2018-04-24 18:00:57 +02:00
Matthias Beyer
279f7ef2aa
Fix: Pass output stream to view_entries()
2018-04-24 16:46:23 +02:00
Matthias Beyer
653db333e6
Fix imag-view for new view_entry() interface
2018-04-24 16:46:23 +02:00
Matthias Beyer
55d9b5456f
Adapt to new libimagentryview interface
...
And properly implement Viewer for DiaryViewer
2018-04-24 16:46:15 +02:00
Matthias Beyer
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
Matthias Beyer
726e4c515f
Merge pull request #1422 from matthiasbeyer/imag-git/init
...
imag-git: init
2018-04-24 15:26:19 +02:00
Matthias Beyer
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
Matthias Beyer
5666ef12d0
Rewrite to not use Store::retrieve_for_module()
2018-04-24 14:01:40 +02:00
Matthias Beyer
470b061fad
Add imag-git in release script
2018-04-24 13:56:11 +02:00
Matthias Beyer
8a5abb22f4
Generate completion for imag-git
2018-04-24 13:56:11 +02:00
Matthias Beyer
055a55c9f0
Add imag-git command
2018-04-24 13:56:11 +02:00
Matthias Beyer
2c52957b63
Replace call to retrieve_for_module() with entries()
...
The iterator type handles everything else.
2018-04-24 13:40:42 +02:00
Matthias Beyer
09d34783cb
Fix imag-mail to list from appropriate collection
2018-04-24 13:40:42 +02:00
Matthias Beyer
190da895f9
Do not use Store::retrieve_for_module() anymore here
2018-04-24 13:40:42 +02:00
Matthias Beyer
22fb26dc12
Replace Store::retrieve_for_module() with own iterator type
2018-04-24 13:40:42 +02:00
Matthias Beyer
007c02c2f1
Rewrite all_category_names() for removed Store::retrieve_for_module()
2018-04-24 13:40:42 +02:00
Matthias Beyer
255f4211c9
Rewrite use of iterator with own iterator implementation
2018-04-24 13:40:42 +02:00
Matthias Beyer
bae9188a08
Remove GlobStoreIdIterator helper iterator type
2018-04-24 13:40:42 +02:00
Matthias Beyer
d70092d691
Remove: Store::retrieve_for_module
2018-04-24 13:40:42 +02:00
Matthias Beyer
cbdfb02423
Merge pull request #1441 from matthiasbeyer/fix-tmpcommit-detection-script
...
Fix checker script for travis
2018-04-24 11:25:21 +02:00
Matthias Beyer
7e078108ba
Fix tmpcommit-detection script for travis
2018-04-23 14:52:20 +02:00
Matthias Beyer
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
Matthias Beyer
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
Matthias Beyer
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
Matthias Beyer
93226ce987
Merge pull request #1434 from matthiasbeyer/libimagdiary/fix-youngest-entry
...
Fix: get_youngest_entry_id()
2018-04-22 15:06:26 +02:00
Matthias Beyer
32a14db059
Merge pull request #1426 from matthiasbeyer/remove-version-dependency
...
Do not depend on "version" crate
2018-04-22 14:39:15 +02:00
Matthias Beyer
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
Matthias Beyer
ee75d2309c
Fix: imag-log show should order by datetime
2018-04-22 14:33:53 +02:00
Matthias Beyer
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
Matthias Beyer
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
Matthias Beyer
bfbb1dfb74
Integrate version-updated script
2018-04-22 13:38:24 +02:00
Matthias Beyer
ededece3f7
Add script for CI check if version is updated
2018-04-22 13:38:24 +02:00
Matthias Beyer
c6dc6d2bee
Modify release script to enforce version updated
2018-04-22 13:38:24 +02:00
Matthias Beyer
19940d3e1c
Set version string by hand here if we do not build with cargo
2018-04-22 13:38:24 +02:00
Matthias Beyer
a343a2ab90
Do not use version crate in build script
2018-04-22 11:09:31 +02:00
Matthias Beyer
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
Matthias Beyer
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
Matthias Beyer
8262de29fe
Update dependency: log: 0.4.0-rc.1 -> 0.4
2018-04-20 20:19:02 +02:00
Matthias Beyer
c6dd1ab56d
Merge pull request #1423 from matthiasbeyer/add-changelog-script
...
Add script to print changelog for a specific range
2018-04-20 10:35:47 +02:00
Matthias Beyer
d7ba28d5ac
Add script to print changelog for a specific range
2018-04-20 09:35:16 +02:00
Matthias Beyer
d08a5ab536
Merge pull request #1417 from matthiasbeyer/libimagrt/suggest-imag-init
...
Suggest imag-init if no config is found
2018-04-20 09:24:44 +02:00
Matthias Beyer
ca5e150f3a
Merge pull request #1421 from matthiasbeyer/imag-view/wrapping
...
imag-view: wrapping
2018-04-20 09:24:14 +02:00
Matthias Beyer
e0decb7294
Merge pull request #1419 from matthiasbeyer/imag-diary/list-diaries
...
Add functionality to list diaries
2018-04-20 09:24:07 +02:00
Matthias Beyer
705c6a33f1
Merge pull request #1420 from matthiasbeyer/imag-tag/read-ids-from-stdin
...
imag-tag: Read ids from stdin
2018-04-20 09:23:49 +02:00
Matthias Beyer
e820f8bfb2
Add functionality to read storeids from stdin
2018-04-19 22:08:34 +02:00
Matthias Beyer
36bc517524
Add support for tagging/untagging multiple entries with one call
2018-04-19 22:08:34 +02:00
Matthias Beyer
e80bf7b57d
Add feature for wrapping output
2018-04-19 21:55:27 +02:00
Matthias Beyer
91a72709f8
Add wrapping functionality to StdoutViewer
2018-04-19 21:54:39 +02:00
Matthias Beyer
6e80f603d6
Add functionality to list diaries
2018-04-19 21:36:22 +02:00
Matthias Beyer
808689cc05
Suggest imag-init if no config is found
2018-04-19 10:57:13 +02:00