Commit graph

3887 commits

Author SHA1 Message Date
b4362f5c65 Alter: EntryHeader should contain a Value, not the BTreeMap<> 2016-02-12 20:02:56 +01:00
74a9b844ca Add debugging output in tests 2016-02-12 20:02:41 +01:00
60ccf58f84 Merge pull request #148 from neithernut/impl-store-retrieve_copy
Implement Store::retrieve_copy()
2016-02-12 18:59:56 +01:00
1cca2bc13f Merge pull request #190 from matthiasbeyer/remove-libimagmodule
Remove codebase: libimagmodule
2016-02-12 13:45:54 +01:00
1b23af7169 Remove codebase: libimagmodule 2016-02-11 17:26:53 +01:00
a1f48b74a1 Merge pull request #188 from matthiasbeyer/libimagutil/error-trace
Add error tracing utility
2016-02-11 17:22:50 +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
103a0dea17 Add test: EntryHeader::read() 2016-02-11 15:45:48 +01:00
731a446546 Implement EntryHeader::read() 2016-02-11 15:45:47 +01:00
548aee8d5f Implement EntryHeader::set() 2016-02-11 15:45:47 +01:00
4d94f8a67f Implement: EntryHeader::insert() 2016-02-11 15:45:47 +01:00
3b09e0c214 Move helper functions outside of walk_header(), so we can use them 2016-02-11 15:45:47 +01:00
42aade5cef Add tests for path-to-value extractor functionality 2016-02-11 15:43:58 +01:00
4759076249 Implement walk_header() 2016-02-11 15:43:58 +01:00
a2e3598c01 Add more error types for header walking 2016-02-11 15:43:58 +01:00
0727fca797 Add tokenizer helper function 2016-02-11 15:43:58 +01:00
2f6cfb5868 Add interface for header field addressing by str 2016-02-11 15:43:58 +01:00
e9528fdd33 Merge pull request #136 from matthiasbeyer/bin/imag-store/init
bin/imag-store/init
2016-02-09 20:24:40 +01:00
00ccc22ef5 Add some debugging output for {create,retrieve,delete} 2016-02-09 20:09:12 +01:00
d85f985694 Fixup path-includes-path checker 2016-02-09 20:08:58 +01:00
d15a5a150b Fix error message for failing test 2016-02-09 20:08:48 +01:00
41e8061826 Merge pull request #183 from matthiasbeyer/fix-readme
Fix wrong license note in README.md file
2016-02-09 18:32:07 +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
756bd09a83 Integrate tests in travis.yml
The tests work only if I call "tree".
Really, how fucked up is travis actually?
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
ddd54e03ad Add store path getter 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