Commit graph

57 commits

Author SHA1 Message Date
d3ddf929b6 Move utility functionality for tests into libimagutil 2017-07-18 23:47:23 +02:00
05c316a1ed Fix build 2017-07-13 18:24:20 +02:00
Robert Ignat
94928c33ca Use inmemory file system for imag-link tests 2017-07-13 18:24:20 +02:00
Robert Ignat
b0a5e1727e Remove unneeded imag-link test cli args 2017-07-13 18:24:20 +02:00
Robert Ignat
6ded27c6ea Add new Runtime constructor
that accepts a Configuration argument;
removed `GetConfiguration` trait and all the previous changes
needed for it
2017-07-13 18:24:20 +02:00
Robert Ignat
9a79232446 Remove enable_hooks from InternalConfiguration 2017-07-08 10:44:14 +02:00
Robert Ignat
a34eda8c41 Use toml-query to get entry links header value
in imag-links tests
2017-07-08 10:44:14 +02:00
Robert Ignat
cb62cf3edb Simplify imag-link GetConfiguration impl 2017-07-08 10:44:14 +02:00
Robert Ignat
52b377eaa1 Make configuration traits methods non-static 2017-07-08 10:44:14 +02:00
Robert Ignat
60e3038874 Add Rust tests for internal linking 2017-07-08 10:44:14 +02:00
7ecef14e1b Export store-consistency-check from libimagentrylink in UI 2017-07-05 11:10:04 +02:00
14735aa4c4 Extract internal linking list call handling 2017-07-04 18:27:13 +02:00
0e1ea242ca Fix: Getting entries from appropriate subcommand 2017-07-04 18:16:50 +02:00
beae005356 imag-link: Remove macro_use which is not needed 2017-02-04 11:16:00 +01:00
Mario Krehl
ddd4a8b94a Fix list external links when required 2017-01-25 10:45:27 +01:00
69d5c69eea Provide flag to still list external links 2017-01-25 09:54:17 +01:00
64c611847b Fix: Only list internal links here, no external ones
Funny side note:

As the commit history reveals, I wasn't active in this repository for
some time.

I first implemented a solution for this problem in about 50 lines of
code. Then I thought that this could be done way simpler, so I rewrote
it in about 20 lines.

Finally, I noticed that I already have infrastructure for this, so this
two-line patch should fix the problem.

Know your codebase, dude!
2017-01-25 09:54:09 +01:00
e658e61c9e Fix: We need an argument here 2016-12-05 15:07:26 +01:00
ec9710f1e7 Rewrite external linking handler function to use less unwrap() 2016-11-01 18:01:00 +01:00
b90dabaa97 Rewrite internal linking handling to use less unwrap() 2016-10-31 23:56:05 +01:00
d857faf1e9 imag-link: Fix iterator usage 2016-10-19 13:03:17 +02:00
c229bb1575 Fix usages of get_external_links() 2016-10-19 13:03:17 +02:00
02a2034d8b Fix usage of libimagentrylink interface 2016-10-14 13:27:06 +02:00
0fc0471af6 imag-link: Add copyright notice to all files 2016-10-01 17:35:06 +02:00
23a42dcb0d imag-link: Use Err/Ok map utility functions to refactor code 2016-09-08 13:57:09 +02:00
ac5ee9fb51 imag-link: Use util function warn_exit() 2016-09-08 08:48:58 +02:00
70a17ca62c Fix typo 2016-09-05 00:35:04 +02:00
c104e165fd Fix handle_internal_linking() and add error output in case of Err(_) via libimagutil::warn_result::* 2016-08-31 08:26:53 +02:00
17dbb1da29 Fix imga-link::main::* for new StoreId interface 2016-08-28 18:41:56 +02:00
703788d9d2 Replace trace_error() with trace_error_exit() where appropriate 2016-07-16 21:57:29 +02:00
4a09979951 Remove unused import 2016-07-15 21:48:29 +02:00
7d395dd87a Add value_name() call in ui specification code 2016-06-08 14:11:13 +02:00
2e94de2fce imag-link: Remove setup code and use helper 2016-05-18 22:57:04 +02:00
93ce1dbfd2 imag-link: Change dependency from libimagutil -> libimagerror 2016-05-17 20:28:02 +02:00
Andre Bogus
5ac661c334 fixed imag-link iterator error 2016-05-13 22:27:39 +02:00
Andre Bogus
dfd6a9b0d3 style adaptations
these were introduced following suggestions from
https://crates.io/crate/clippy
2016-05-13 22:26:48 +02:00
ad18fdd604 imag-link: Replace .err().unwrap() with .unwrap_err() 2016-04-20 21:45:26 +02:00
3e29ec0187 Merge pull request #359 from matthiasbeyer/remove-init-logging
Remove init logging
2016-04-17 16:27:37 +02:00
e20e2c2f25 Remove init-logging from imag-link 2016-04-17 15:30:33 +02:00
b5fd085693 Fix names: libimaglink -> libimagentrylink 2016-04-17 12:22:13 +02:00
10edc17e19 Enable lints 2016-04-16 22:46:46 +02:00
533e7e6da0 Remove unused mut keywords 2016-04-16 22:46:39 +02:00
a7c1cc0d6f Use unused result 2016-04-16 22:46:29 +02:00
e8c682fc28 Remove unused imports 2016-04-16 22:46:20 +02:00
0c970263ce Add debugging output in handle_external_linking() 2016-04-16 17:05:59 +02:00
b9800ba008 Add implementation for external linking 2016-04-16 17:05:59 +02:00
0483283638 Enforce arguments by using ArgGroup 2016-04-16 17:05:59 +02:00
f0c6ac7630 Adapt interface for external linking 2016-04-16 17:05:59 +02:00
9116409c16 Implement the --list argument 2016-04-14 17:18:02 +02:00
3719bf8ae9 The --list argument takes a value, actually. The StoreIDs! 2016-04-14 17:18:02 +02:00