Commit graph

35 commits

Author SHA1 Message Date
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
d15a5a150b Fix error message for failing test 2016-02-09 20:08:48 +01:00
04a5bb9138 Allow --id / -i as path specification, for consistency 2016-02-09 13:48:14 +01:00
a59ce2003c Add test: delete functionality 2016-02-09 13:48:14 +01:00
6ec57c0bde Add silent() helper for calling without debugging output 2016-02-09 13:48:14 +01:00
ef8c364ef1 Add test: retrieve 2016-02-09 13:48:14 +01:00
e8ec335b74 imag-store: dependency: version: 1.1.0 -> 2.0.1 2016-02-09 13:48:14 +01:00
5f518726ee tests: Add version in filenames for test files 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
3004845339 Add test for file with custom header with two keys in one section 2016-02-09 13:48:14 +01:00
ee13a96fe6 Add test with multiple headers on commandline 2016-02-09 13:48:14 +01:00
e4d113cf4f Add test for custom header and content 2016-02-09 13:48:14 +01:00
2b39b8eed7 Add add test for generating custom header 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
7a403c7f93 tests: Add imag-store tests 2016-02-09 13:45:13 +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
7fec8a1b23 Move commandline-header parsing code to utility module
as the code can be re-used in the update() implementation.
2016-02-09 13:45:13 +01:00
947d7900bf Implement Store::delete() interface 2016-02-09 13:45:13 +01:00
1fb29a11c8 Implement Store::update() interface 2016-02-09 13:45:13 +01:00
9c0796d7b3 Implement Store::retrieve() interface
Rename: read.rs -> retrieve.rs
2016-02-09 13:45:13 +01:00
dbd6388946 Implement Store::create() interface 2016-02-09 13:45:13 +01:00
bd0d44d4b2 Add error module for imag-store 2016-02-09 13:45:13 +01:00
fa4beeebcd Add initial codebase 2016-02-09 13:45:13 +01:00
2c876a3714 Add interface builder function 2016-02-09 13:45:13 +01:00
86e810cc43 Add dependencies 2016-02-09 13:45:13 +01:00
a41614fd00 Init: imag-store binary 2016-02-09 13:45:13 +01:00