05d38bdf49
[CHERRY-PICK] Move edit_entry_with_cmd() to libimagutil
2016-09-09 16:34:19 +02:00
7bf654158e
Merge pull request #695 from matthiasbeyer/libimagutil/warn-exit
...
libimagutil: Add warn_exit() convenience helper
2016-09-05 19:24:01 +02:00
b2f764d004
Add warn_exit() convenience helper
2016-09-05 16:15:50 +02:00
ec9da007a5
Add comment for warn_result code
2016-09-05 16:15:45 +02:00
87e170df72
Add comment for info_result code
2016-09-05 16:15:45 +02:00
2c89de1332
Add comment for debug_result code
2016-09-05 16:15:45 +02:00
6b6e3a0e12
Add documentation for the code-generator macro
2016-09-05 16:15:45 +02:00
7257f2cda1
Add libimagutil::warn_result::*
2016-08-28 14:31:29 +02:00
d050be4cbc
Refactor, generate code with macro
2016-07-30 11:57:42 +02:00
deb1544bc5
Add info_result
2016-07-30 11:45:31 +02:00
0b1ea94dae
Add utility to print debugging information while mapping
2016-07-29 16:49:45 +02:00
John Sirois
7f57e5e234
Move from a helper function to a typeclass.
...
This introduces the `FoldResut` trait to move from `func(receiver, ...)`
style to `receiver.func(...)` style. Also add a means to pass the
default result explicitly.
2016-07-14 07:28:54 -06:00
John Sirois
2c40b8734e
Add a fold_ok
utility.
...
Add a utility that folds an iterator into a result and uses it to reduce
boilerplate in the codebase.
2016-07-13 12:43:04 -06:00
9337a14cdd
Update all version strings: 0.1.0 -> 0.2.0
2016-07-12 11:51:20 +02:00
1c723a9a0e
Move trace_error() functionality from libimagutil to libimagerror
2016-05-17 20:28:02 +02:00
f22624302c
Make trace() output red
2016-05-15 17:47:01 +02:00
5dd0fa900c
Add dependency: ansi_term = 0.7
2016-05-15 17:46:52 +02:00
11021906b3
Merge pull request #401 from matthiasbeyer/libimagutil/code-cleanup
...
Code cleanup in libimagutil
2016-05-15 13:58:57 +02:00
e66d837642
Remove unneeded scopes
2016-05-14 19:51:24 +02:00
Andre Bogus
981707c9c9
more style adaptations
...
again following clippy
2016-05-13 22:27:53 +02:00
111c8b73f0
Update log: 0.3.* -> 0.3
2016-05-10 17:54:47 +02:00
f6e59c355e
Remove "caused by" marker
...
As we are in debug mode anyways, a developer using this should know by
the trace number that the next line is the cause.
As we use the debug!() macro here, this would be printed on a new line,
which is rather distracting instead of helpful. Therefor this patch
removes this line.
2016-04-22 15:10:24 +02:00
ad4e73399f
Make trace() output a bit nicer
2016-04-21 16:36:13 +02:00
9732c84247
libimagutil Update regex 0.1.x -> 0.1.*
2016-04-17 21:00:31 +02:00
7bcff48286
Enable lints
2016-04-16 22:31:51 +02:00
a636040907
Use unused results by calling write!() with .ok()
2016-04-16 22:31:42 +02:00
4a1fd4230e
Merge pull request #270 from matthiasbeyer/libimagutil/trace-newline
...
Add another missing newline character
2016-03-26 15:29:56 +01:00
0d8184451b
Add README for libimagutil
2016-03-25 15:56:42 +01:00
8657d401cb
Add another missing newline character
2016-03-25 13:29:59 +01:00
cd6e000be8
trace: Add missing newline
2016-03-12 16:06:10 +01:00
501f4f3111
Merge pull request #203 from matthiasbeyer/libimagutil/ismatch-util
...
Add ismatch!() macro
2016-03-07 17:22:13 +01:00
03747aa237
util: Update regex = 0.1.54
2016-02-23 13:17:36 +01:00
a429e872e1
Add ismatch!() macro
2016-02-21 11:44:39 +01:00
1b8838bf1f
use lazy_static so we do not compile regex multiple times
2016-02-20 21:10:22 +01:00
0a8eaa1411
Add documentation of functions
2016-02-11 15:48:41 +01:00
d8ae741f31
Add error tracing utility
2016-02-11 15:48:41 +01:00
78cda89524
Add dependency: log = 0.3.5
2016-02-11 15:48:39 +01:00
e3daf7c853
tests: Allow quotes in keys
2016-01-29 23:11:42 +01:00
db38713977
Adapt test: single quoted
2016-01-29 23:11:42 +01:00
448c69891e
Reimplement IntoKeyValue for String
...
* Double quotes should not be in the result
* Regex allows quotes in strings now
2016-01-29 23:11:42 +01:00
Marcel Müller
4d28b57658
Remove remaining Cargo.lock files
2016-01-22 20:15:32 +01:00
e86403978d
Add getter for key/value
2016-01-20 18:05:09 +01:00
78e104706f
Adapt tests
2016-01-20 10:42:40 +01:00
2c5d61c456
Split String->key-value with types
2016-01-20 10:42:34 +01:00
77204c8e22
Add key-value-splitter helper
2016-01-20 09:42:48 +01:00
9b77ae1348
Use regex
2016-01-20 09:42:37 +01:00
29c58a2fa9
Add dep: regex = 0.1.47
2016-01-20 09:42:17 +01:00
6aa9276a06
util: Add variant-tests
2016-01-18 19:14:06 +01:00
be6a0b8b78
util: Add variant-generator utility
2016-01-18 19:14:02 +01:00
d786b5e8d3
Add: libimagutil
2016-01-09 23:50:26 +01:00