Commit Graph

87 Commits

Author SHA1 Message Date
Matthias Beyer c115215fa4 Merge branch 'master' into libimagerror/integration
This merge solved a _LOT_ of conflicts and was a rather complicated one,
as parts of the conflict-resolution involved rewriting of half the
stuff.

This merge commit fixes all the things so a `cargo check --all`
succeeds, but I did not yet check whether tests run without failure.
2017-09-04 23:02:45 +02:00
Matthias Beyer 6d1dab3117 Merge pull request #1029 from matthiasbeyer/all-extensions-as-traits
All extensions as traits
2017-09-04 21:59:54 +02:00
Matthias Beyer 39dd9e8d7c Add Task trait for getting UUID from task 2017-09-04 09:20:14 +02:00
Matthias Beyer 72ea21ee1f Rename module task -> taskstore 2017-09-04 09:20:14 +02:00
Matthias Beyer 18e806f588 Remove dedicated result modules, use error chain generated Result types 2017-09-04 09:19:29 +02:00
Matthias Beyer eefcfd02dc Allow generated fns from macros to be unused 2017-09-03 22:01:40 +02:00
Matthias Beyer 7ce44e8090 Remove "IntoError" trait, use error_chain functionality 2017-09-03 21:34:07 +02:00
Matthias Beyer 28d7085b2d Remove error_chain dependency, not needed 2017-09-03 21:33:55 +02:00
Matthias Beyer 936a314efa libimagtodo: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer a5bb7a9bec libimagtimetrack: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 22cff91653 libimagmail: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 677a5e8886 libimagdiary: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 31dc0eebc2 libimagcounter: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer c9dbf76395 libimagbookmark: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 5b781702cc libimagentryview: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 0ede39a991 libimagentrytag: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 8d8a91e7c5 libimagentrycategory: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 262aae39f4 libimagentryannotation: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer d443b83b52 libimagentrydatetime: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 0b068df84e libimagnotes: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 22be1627b7 libimagentryref: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer bb6956740d libimagentrymarkdown: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 9aa5d7439d libimagentrylist: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 4b4b0b0804 libimagentryedit: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer ca0dd5906d libimagentrylink: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer ac34b4ee66 libimaginteraction: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer b6909a2c86 libimagrt: Rewrite error handling 2017-09-03 21:33:54 +02:00
Matthias Beyer 2df99524e7 libimagstore: rewrite error handling code 2017-09-03 21:33:54 +02:00
Matthias Beyer 603808a9fa Impl IntoError for error kinds 2017-09-03 15:42:06 +02:00
Matthias Beyer 9713a4632c Remove error_gen module entirely 2017-09-03 15:42:06 +02:00
Matthias Beyer a309fdb280 Add recursion limits to crates 2017-09-03 15:42:06 +02:00
Matthias Beyer 11d881d3a9 Add dependency to crates: error_chain = 0.10 2017-09-03 15:42:06 +02:00
Matthias Beyer e77d353c52 Rewrite macros to do error-chain behind the scenes 2017-09-03 15:42:03 +02:00
Matthias Beyer 4908cc6aaa Add more helpers 2017-09-03 13:48:05 +02:00
Matthias Beyer 0683bf198b Fix recursion problem 2017-09-03 13:48:05 +02:00
Matthias Beyer 93444be412 Light code cleanup 2017-09-03 13:48:05 +02:00
Matthias Beyer 64f96092cd Fix aggregation 2017-09-03 13:48:05 +02:00
Matthias Beyer 482377abb9 Actually print error here (as logging isnt initialized at this point) 2017-09-03 13:48:05 +02:00
Matthias Beyer 5ec1cd48a0 Implement format-fetching from config/cli 2017-09-03 13:48:05 +02:00
Matthias Beyer ae24954020 Implement templating 2017-09-03 13:48:05 +02:00
Matthias Beyer 2c66dcdf37 Rewrite logging: Types
This is the first part of a series of patches that reimplements the
logging backend to be more powerful and configurable.

This first patch adds types and infrastructure to be able to implement a
powerful logging abstraction.

It does not implement much functionality, except for a check whether a
module is enabled or not when logging (if configured in the config
file).
2017-09-03 13:48:05 +02:00
Matthias Beyer 5626a365c6 Merge pull request #1044 from matthiasbeyer/libimagrt/feature-testing
Add store extraction to Runtime
2017-09-02 17:25:13 +02:00
Mario Krehl 58a2729da0 Changed Task trait to TaskStore trait, implemented for the Store instead of the FileLockEntry 2017-09-02 14:30:27 +02:00
Matthias Beyer 8c69ed54e4 Merge pull request #1035 from matthiasbeyer/tag-ui-feature-to-bin
Tag ui feature to bin
2017-09-02 14:10:01 +02:00
Mario Krehl f3bb6d02d0 Change the Task(FileLockEntry) type to a trait 2017-09-02 12:23:29 +02:00
Matthias Beyer ab06263507 Add store extraction to Runtime
This is necessary to be able to re-build a Runtime object with an new
set of "commandline arguments". For example if a test wants to test two
calls to imag, for example a "add" operation followed by a "remove" operation.

These functions are feature-gated therefor and should only be used in
tests.
2017-09-02 10:42:11 +02:00
Matthias Beyer b32245b03a Bugfix: Fix macro to use the appname instead of hardcoded values 2017-09-02 10:41:38 +02:00
Matthias Beyer b787ef1696 Move tagging UI code to binary 2017-09-02 10:16:56 +02:00
Matthias Beyer 1a244a3d6b Add setget test 2017-09-01 20:35:30 +02:00
Matthias Beyer eb32027546 Add test setup with first test 2017-09-01 20:35:30 +02:00