Commit graph

1930 commits

Author SHA1 Message Date
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
17eb59ae29 Add depdendencies 2016-03-11 16:20:01 +01:00
9f5a33f962 imag-view: init 2016-03-11 16:18:17 +01:00
9a918c9252 Merge pull request #242 from matthiasbeyer/libimagstore/revert-id_in_store-check
Revert "Check whether the StoreId is inside the store, before doing a…
2016-03-11 16:02:11 +01:00
086ad0ec69 Add external-link validation before setting 2016-03-11 15:15:02 +01:00
695ee9df9b Add (external) link validation 2016-03-11 15:15:02 +01:00
cb288eb868 Rewrite internal linking
* so you need to pass Entry instead of Link
* interal linking does two-way-linking
2016-03-11 15:15:02 +01:00
3b02a30788 Move Link/Links type to external linking code 2016-03-11 15:15:02 +01:00
b8766a224e Implement ExternalLinker for Entry for convenience 2016-03-11 15:15:02 +01:00
d6029678c7 Implement InternalLinker for Entry, for convenience 2016-03-11 15:15:02 +01:00
defec535c8 Refactor internal link helpers into trait 2016-03-11 15:15:02 +01:00
1e17b10568 Refactor external linking into trait 2016-03-11 15:15:02 +01:00
277c31237a lib: Add remove_link() 2016-03-11 15:15:02 +01:00
b7a5f57e3a lib: Implement add_link() 2016-03-11 15:15:02 +01:00
339ec08a83 lib: Add Links::{add,remove}() 2016-03-11 15:15:02 +01:00
6480fb515c lib: Derive some traits for Link{,s} type 2016-03-11 15:15:02 +01:00
19322b667a Add helper for processing store result 2016-03-11 15:15:02 +01:00
a53d36c23d Implement internal::set_links() 2016-03-11 15:15:02 +01:00
950dce945f Implement internal::get_links() 2016-03-11 15:15:02 +01:00
b6168f50a1 Implement: Links::new() 2016-03-11 15:15:02 +01:00
e4fae4cfcf Implement: of external::set_link() 2016-03-11 15:15:02 +01:00
18de6b80d5 Implement: external::get_link() 2016-03-11 15:15:02 +01:00
e6e9a1a19e Add Error kinds 2016-03-11 15:15:02 +01:00
17daf7c387 Add Link::new() 2016-03-11 15:15:02 +01:00
ff3d5dd94b Add initial interface spec 2016-03-11 15:15:02 +01:00
2430e68dc2 Add dependencies 2016-03-11 15:15:02 +01:00
e43bfa2c2c init: libimaglink 2016-03-11 15:15:02 +01:00
6c50d88669 Add tag filtering 2016-03-11 15:13:34 +01:00
b53f342fb8 Merge pull request #244 from matthiasbeyer/libimagstore/fix-add_implicit_directory_creating
Fix: implicitely create directories on file saving
2016-03-11 10:56:38 +01:00
6d7065d10e Fix test: StoreId does not start with "/" anymore 2016-03-10 19:12:00 +01:00
a9a64d4ab6 Fix: implicitely create directories on file saving 2016-03-10 19:06:27 +01:00
a3a09ff4ee Fix store creation of libimagstore
The macro may not prefix the StoreId internal PathBuf with '/', so this
path is not absolute. This way we can introduce `storify_id()` which
creates a proper PathBuf into the store out of our StoreId object.

Does not yet do verification whether the path is inside the store,
actually.
2016-03-10 18:46:26 +01:00
3413646934 Revert "Check whether the StoreId is inside the store, before doing anything on the FS"
This reverts commit 373502217e
as this commit was introducing a bug.

The StoreId type says `/test/example` for a store id path, which is
completely valid, as the root (`/`) is the store itself. The
id_in_store() function assumed that the store-id is the full
(file-system) path to the store entry, which is false.

This commit does not introduce a fix but revert the check.
2016-03-10 18:14:53 +01:00
40019b4384 Update {README,CONTRIBUTING}.md to contain more detailed information 2016-03-10 12:40:04 +01:00
19375f2b68 Add clap::ArgGroup to rely on clap for mutually exclusive args 2016-03-08 11:24:50 +01:00
7dde6c2a56 Merge pull request #235 from matthiasbeyer/libimagstore/update-glob
libimagstore: Update glob 0.2.10 -> 0.2.11
2016-03-07 17:58:27 +01:00