Commit graph

60 commits

Author SHA1 Message Date
4f62dfcf2b Fix imag-store::create::* to fail on absolute pathes 2016-08-31 08:26:53 +02:00
372d46d2aa Fix imag-store::{create, delete, get, retrieve, update}::* for new StoreId interface 2016-08-28 18:41:56 +02:00
13945ab352 Replace unwrap() with match 2016-08-03 13:04:53 +02:00
0f13fc38c0 Replace unwrap() with match 2016-08-03 13:04:47 +02:00
84e33c07e6 Replace unwrap() with try!() 2016-08-03 13:04:27 +02:00
bd085b0ead Replace unwrap() with match 2016-08-03 13:04:20 +02:00
ce766427da Merge pull request #561 from matthiasbeyer/libimagstore/verify
Libimagstore/verify
2016-07-17 13:03:54 +02:00
555ea158aa Add "verify" feature in imag-store 2016-07-17 00:59:04 +02:00
6b34650a50 Remove unused imports 2016-07-16 21:57:29 +02:00
703788d9d2 Replace trace_error() with trace_error_exit() where appropriate 2016-07-16 21:57:29 +02:00
0ca8f6bc0b Add value_name() call in ui specification code 2016-06-08 14:11:13 +02:00
95c640c1e9 Implement get() functionality 2016-05-28 10:36:09 +02:00
203e649b4f Make print_entry() pub to be available in get() implementation 2016-05-28 10:36:09 +02:00
a2ea89e936 Add UI specification for get() functionality 2016-05-28 10:36:09 +02:00
6bc5099acc imag-store: use generate_error_module!() macro and reexport generated types 2016-05-19 18:22:03 +02:00
0315b93c04 imag-store: Replace error module imports with macro helper 2016-05-19 18:22:03 +02:00
77f9e5ae0e imag-store: Remove setup code and use helper 2016-05-18 22:57:05 +02:00
ab29265b10 imag-store: Change dependency from libimagutil -> libimagerror 2016-05-17 20:28:02 +02:00
60bf3c68a7 imag-store: Replace error code with code generator macro 2016-05-17 00:26:35 +02:00
Andre Bogus
cd224eaeff roll back closure, remove unneeded slice & imports 2016-05-14 20:12:19 +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
7aeb0c2833 Remove unused import 2016-04-21 15:57:42 +02:00
b629d0b8f1 Merge pull request #367 from matthiasbeyer/unwrap_err
Unwrap err
2016-04-21 15:08:36 +02:00
0c4edf6474 Merge pull request #374 from matthiasbeyer/remove-unneeded-derefs
Remove unneeded derefs
2016-04-21 15:08:00 +02:00
bcc7554389 Enable lints 2016-04-21 13:32:05 +02:00
713151af79 Remove unneeded keyword "mut" 2016-04-21 13:32:05 +02:00
73c844ceb1 Remove unused imports 2016-04-21 13:32:05 +02:00
75fbcef4aa Use unused results 2016-04-21 13:32:05 +02:00
523eef009d Remove unneeded calls to deref() 2016-04-21 13:23:01 +02:00
cd73be256b imag-store: Replace .err().unwrap() with .unwrap_err() 2016-04-20 21:45:26 +02:00
7a732729ab Remove init-logging from imag-store 2016-04-17 15:30:33 +02:00
d6aa42bd60 Move logger initialization to earliest possible point 2016-03-26 15:29:24 +01:00
953b10fe16 Merge pull request #290 from matthiasbeyer/imag-store/remove-false-arggroup
Remove false grouping from UI
2016-03-26 13:57:20 +01:00
23c3eda89d Remove false grouping from UI 2016-03-25 19:25:56 +01:00
dc2a5f703f Trace error on retrieve failure 2016-03-25 19:18:00 +01:00
df740ac63a Adapt to new function interface of build_entry_path() 2016-03-19 14:48:09 +01:00
b8b49b3240 Move: build_entry_path() from imag-store to libimagstore 2016-03-19 14:47:45 +01:00
19375f2b68 Add clap::ArgGroup to rely on clap for mutually exclusive args 2016-03-08 11:24:50 +01:00
da74e4976e imag-store: Update clap: 1.5.5 -> 2.1.1 2016-02-20 21:21:51 +01:00
37ce23fcaa Remove EntryHeader::toml() calls and replace with ::into() and ::from() calls 2016-02-12 22:07:43 +01:00
04a5bb9138 Allow --id / -i as path specification, for consistency 2016-02-09 13:48:14 +01:00
8c6fc7ef41 util: Verify that path contains version, else panic!() 2016-02-09 13:48:14 +01:00
6a0baf7bc5 Add semver = 0.2.1 2016-02-09 13:48:14 +01:00
67a7f1ab78 Add dedicated function for creating an entry with content 2016-02-09 13:48:14 +01:00
10fa3e3daf util: Add parsing ints and floats 2016-02-09 13:45:13 +01:00
5fdbb61ac8 create() fixup: entry_from_raw() -> string_from_raw_src() 2016-02-09 13:45:13 +01:00
2c30d474a9 UI: Add content-from argument, to get content from CLI _or_ from File/stdin 2016-02-09 13:45:13 +01:00
ef18cb1144 Add extensive debugging output in utilities 2016-02-09 13:45:13 +01:00
1517d6f310 Fix: build_toml_header() should get the header object as mutable 2016-02-09 13:45:13 +01:00
caee76650d Add store entry path builder helper 2016-02-09 13:45:13 +01:00