Commit Graph

4607 Commits

Author SHA1 Message Date
Matthias Beyer de7a4d2dfb Integrate spinner for nicer progress reports 2018-01-03 16:00:46 +01:00
Matthias Beyer f324deb41e imag-init: initial import 2018-01-03 15:48:58 +01:00
Matthias Beyer 0c9c9e26c1
Merge pull request #1183 from matthiasbeyer/libimaglog/init
libimaglog: init
2018-01-01 21:18:22 +01:00
Matthias Beyer 529f3f83da
Merge pull request #1187 from matthiasbeyer/libimagerror/display-fix
Improve error output
2018-01-01 20:47:24 +01:00
Matthias Beyer 774933ae4a
Merge pull request #1163 from matthiasbeyer/libimagstore/mighty-iters
libimagstore: More powerful iterator extensions
2017-12-25 22:02:56 +01:00
Matthias Beyer 198e304be9 Initial import of libimaglog implementation 2017-12-25 21:55:04 +01:00
Matthias Beyer 92d4a0237e Initial import: libimaglog 2017-12-25 21:46:04 +01:00
Matthias Beyer 9890371652
Merge pull request #1185 from matthiasbeyer/bump-version-strings
Update version strings: 0.5.0 -> 0.6.0
2017-12-25 21:06:14 +01:00
Matthias Beyer 0ae7b6b387 Do not call description() when displaying the error 2017-12-25 19:44:29 +01:00
Matthias Beyer 46a8d373b3 Allow dead code in whole module 2017-12-25 19:23:41 +01:00
Matthias Beyer f3ba1791b9 Update version strings in doc 2017-12-25 19:17:07 +01:00
Matthias Beyer 7d67b67440 Update version strings in tests 2017-12-25 19:17:07 +01:00
Matthias Beyer 3c8dd19d11 Update version strings: 0.5.0 -> 0.6.0 2017-12-25 19:17:07 +01:00
Matthias Beyer 3e972bc264
Merge pull request #1177 from matthiasbeyer/libimagstore/toml-read
libimagstore: use toml::Value::as_str() (for example)
2017-12-25 19:13:32 +01:00
Matthias Beyer 9128d04866 Remove test
This test is not applicable anymore because it tests (and tested) the
wrong thing.

It was to check whether the function failed because the "imag" key
contained the wrong type, but this is not tested by that function. The
function only checks whether the "imag" key is present.
2017-12-25 17:59:50 +01:00
Matthias Beyer 35410aaa2e Refactor: Remove unneccessary functions 2017-12-25 17:59:50 +01:00
Matthias Beyer 20a552f527 Refactor header checking to use toml-query 2017-12-25 17:59:50 +01:00
Matthias Beyer 2bf91fab09 Enhance error types 2017-12-25 17:59:50 +01:00
Matthias Beyer 986dbad2fd
Merge pull request #1176 from matthiasbeyer/libimagstore/remove-config
libimagstore: remove config
2017-12-25 17:58:16 +01:00
Matthias Beyer d1ca47227a
Merge pull request #1180 from matthiasbeyer/v0.5.0-branch
V0.5.0 branch
2017-12-24 14:34:06 +01:00
Matthias Beyer d6e1994eeb Fix: Explicitely import only relevant trait 2017-12-24 13:52:50 +01:00
Matthias Beyer 0870665668 Add iterator extension for iterators over Result<T, E> 2017-12-24 13:52:50 +01:00
Matthias Beyer 67410b3ad2 Implement iter extension for all iterators over StoreId 2017-12-24 13:52:50 +01:00
Matthias Beyer 0ed636bb06 Refactor libimagrt+libimagstore to pass whole configuration object
Before we extracted the store configuration from the configuration
toml::Value object and passed it to the store.

This is unecessary overhead.

Now we pass the whole configuration object and let the store extract the
required values.
2017-12-24 13:52:18 +01:00
Matthias Beyer 174d8d76e9 Remove configuration member, reduce configuration
We only need the configuration to check whether creating the store
directory is actually allowed.
2017-12-24 13:52:13 +01:00
Matthias Beyer 38b56df406 Add new dependency: toml-query 2017-12-24 13:52:13 +01:00
Matthias Beyer 3f787fb438 Add release helper script 2017-12-24 13:31:59 +01:00
Matthias Beyer cf5b4239c4 Update version string
Holy crap this should really not happen. We accidentially released this
crate as 0.4.0 instead of 0.5.0.
2017-12-24 13:31:59 +01:00
Matthias Beyer 9ecd1849d7 Fix README path 2017-12-24 13:31:59 +01:00
Matthias Beyer 29bde7a68f Update date in documentation 2017-12-23 15:32:30 +01:00
Matthias Beyer 261aac55f2 Finalize changelog 2017-12-23 15:25:08 +01:00
Matthias Beyer 591046d1f6 Remove finished TODOs 2017-12-23 15:25:08 +01:00
Matthias Beyer 898617ff62
Merge pull request #593 from matthiasbeyer/libimagnotification/init
Libimagnotification/init
2017-12-23 15:19:16 +01:00
Matthias Beyer 552d963980 Add changelog entry 2017-12-23 14:20:46 +01:00
Matthias Beyer 420af751fc Add dbus and pkgconfig dependencies in travis.yml 2017-12-23 14:20:46 +01:00
Matthias Beyer f0ae628687 Transform to use error-chain 2017-12-23 14:20:46 +01:00
Matthias Beyer 7bdaaf35fc Initial import 2017-12-23 14:20:46 +01:00
Matthias Beyer 4819061d68
Merge pull request #1179 from matthiasbeyer/imag-link/intelligent-positional-args
Rewrite imag-link commandline to be intelligent
2017-12-23 14:20:24 +01:00
Matthias Beyer 8104b1cf0b Adapt tests
This changes the internal function `link_from_to` a bit, but as this is
only internal we don't care.
2017-12-23 12:57:15 +01:00
Matthias Beyer 9ec5ed9b05 Rewrite imag-link commandline to be intelligent
This patch is a rewrite for the imag-link commandline to automatically
recognize whether an internal or an external link is about to be made
and automatically do the right thing.

The commandline got a lot easier and also smaller in size (as in number
of commands), but the functionality should remain the same.
2017-12-23 12:57:13 +01:00
Matthias Beyer 7a12d82552
Merge pull request #1169 from matthiasbeyer/imag-habit/init
Imag habit/init
2017-12-22 16:20:09 +01:00
Matthias Beyer 05a630f943 Change UI. Positional args are not possible here 2017-12-22 14:40:01 +01:00
Matthias Beyer 6a7e7f0f12 Add functionality so we can create a habit with a due date 2017-12-22 14:40:01 +01:00
Matthias Beyer df16d0737e Adapt for new API of Habit::next_instance_date()
With cd8f0beae8
the interface of `HabitTemplate::next_instance_date()` changed to return
a `Result<Option<_>>` rather than a `Result<_>` because the
next_instance_date could be a None if the Habit was closed already.

This patch adapts imag-habit for this new interface.
2017-12-22 14:40:01 +01:00
Matthias Beyer 501f67dcf2 Add more output in today() 2017-12-22 14:40:01 +01:00
Matthias Beyer 496850a762 Add future-check in CLI and fix for default command invokation 2017-12-22 14:40:01 +01:00
Matthias Beyer 39a983f6fb Add more details to default command 2017-12-22 14:40:01 +01:00
Matthias Beyer 7cf46f99d4 Add `done` functionality 2017-12-22 14:40:01 +01:00
Matthias Beyer b78095d8bc Impl delete() 2017-12-22 14:40:01 +01:00
Matthias Beyer ff39a450b1 Explicitely state that printing an empty table is forbidden 2017-12-22 14:40:01 +01:00