Commit graph

5665 commits

Author SHA1 Message Date
d7733aa13a Make hooks configurable
This introduces the Configurable trait and abstracts the
dependency-traits for each trait over a generic "Hook" trait, which
requires Configurable and Debug to be implemented, but has no own
functions.

Configuring is done _without_ the Runtime object, so we can be sure that
the hooks do not have access to the store object.
2016-03-16 16:46:51 +01:00
d9a4512821 Add debug output for hook exec functions 2016-03-16 16:46:51 +01:00
da3554d98e Add debug output for hook register functions 2016-03-16 16:46:51 +01:00
6af5be15ad Hooks must implement Debug 2016-03-16 16:46:51 +01:00
bb0e7e2468 Implement: execute_post_delete_hooks() 2016-03-16 16:46:51 +01:00
f703e8a4cd Implement: execute_post_update_hooks() 2016-03-16 16:46:51 +01:00
7014256407 Implement: execute_post_retrieve_hooks() 2016-03-16 16:46:51 +01:00
5831d3bc7b Implement: execute_post_create_hooks() 2016-03-16 16:46:51 +01:00
196be30d91 Implement: execute_post_read_hooks() 2016-03-16 16:46:51 +01:00
09acddaef9 Implement: execute_pre_delete_hooks() 2016-03-16 16:46:51 +01:00
5aa663987b Implement: execute_pre_update_hooks() 2016-03-16 16:46:51 +01:00
94128f8bcc Implement: execute_pre_retrieve_hooks() 2016-03-16 16:46:50 +01:00
3244b87c7e Implement: execute_pre_create_hooks() 2016-03-16 16:46:50 +01:00
975a2bc8b9 Implement: execute_pre_read_hooks() 2016-03-16 16:46:50 +01:00
ac280ba616 Insert pre/post hook execution functions 2016-03-16 16:46:50 +01:00
3cf2588104 Add error types for pre/post hooks 2016-03-16 16:39:39 +01:00
17b1d6c390 Redefine hook trait system 2016-03-16 16:39:39 +01:00
001c80b72d Hook: Add traits which must be implemented for Hook 2016-03-16 16:39:39 +01:00
b9127381b8 Add hook registering 2016-03-16 16:39:39 +01:00
d99d25a3e1 Add HookRegisterError kind 2016-03-16 16:39:14 +01:00
e969b8678e Add hook traits 2016-03-16 16:39:14 +01:00
8c220af300 Merge pull request #193 from matthiasbeyer/imag-counter/init
Imag counter/init
2016-03-16 16:35:46 +01:00
8d234440b5 doc: imag-counter 2016-03-15 15:01:10 +01:00
4c6f300965 Remove warnings: Unused result -> use trace_error() 2016-03-13 22:28:47 +01:00
b5f97a83c9 Add ArgGroup for output options 2016-03-13 22:28:47 +01:00
89c34e74ef Fix semantics if is-empty filter 2016-03-13 20:23:47 +01:00
183a9e1388 trace: Add missing newline 2016-03-12 19:39:00 +01:00
Kai Sickeler
0a94160895 Add field_grep filter
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2016-03-12 18:22:00 +01:00
cd6e000be8 trace: Add missing newline 2016-03-12 16:06:10 +01:00
361dec4cec Revert "Check whether the StoreId is inside the store, before doing anything on the FS"
This reverts commit 373502217e.
2016-03-12 16:06:10 +01:00
09ac788e6f imag-counter: init 2016-03-12 16:06:10 +01:00
2bc9f2ec25 libimagcounter: init 2016-03-12 16:06:10 +01:00
564d8d84fe Reimplement FieldIsType filter with FieldPredicate filter 2016-03-12 15:06:34 +01:00
f86a8968a4 Reimplement FieldEq with FieldPredicate 2016-03-12 15:06:34 +01:00
c76d654f9b Add field_lt filter 2016-03-12 15:06:34 +01:00
7b9f8dc8ad Add field_gt filter 2016-03-12 15:06:33 +01:00
4de014c41a Add field_predicate filter 2016-03-12 15:06:33 +01:00
ca362ac238 Remove exit(1) calls where possible and replace by trace() calls 2016-03-11 16:40:13 +01:00
34c020fa55 Introduce error module 2016-03-11 16:21:51 +01:00
c1fcf22619 Group Args, so we enforce that only _one_ of them can be specified 2016-03-11 16:21:51 +01:00
a61b83df07 Add viewer selection 2016-03-11 16:21:49 +01:00
d464ccc9d4 Remove unused imports 2016-03-11 16:21:33 +01:00
c415d3c968 Print error in case of GlobError 2016-03-11 16:21:33 +01:00
f582ea9367 StdoutViewer: Implement view() 2016-03-11 16:21:33 +01:00
68b2c152e3 Use StdoutViewer by now 2016-03-11 16:21:33 +01:00
e9587ced28 Implement view_versions_of() 2016-03-11 16:21:33 +01:00
d99d38bf8e Implement entry loading 2016-03-11 16:21:33 +01:00
d02ac8bd88 Add stdout-viewer 2016-03-11 16:21:19 +01:00
43d27ab689 Add main() 2016-03-11 16:21:02 +01:00
2e6b6b50fa Add ui::build_ui() 2016-03-11 16:20:20 +01:00