37f3c90914
Remove dead code
2015-12-30 23:02:05 +01:00
a2856d8671
Remove unused imports
2015-12-30 23:02:05 +01:00
8f46056a08
BM::command_list() add filter functionality
2015-12-30 15:14:26 +01:00
7bbe1bb6d0
Refactor: Provide generic cli-to-filter-function generator
...
The refactors functions from the BM module into more generic functions
for all modules.
The previous state was, that there were functions in the BM module which
were used to load from the store and applying some filters.
The new state is that there are functions to generate the filter
functions which are then used to filter the loaded files from the store,
so we can apply some more functionality on the filtered list.
2015-12-30 15:06:22 +01:00
09aa7d9ec3
Add debug output to text-from-header fetcher function
2015-12-30 15:06:02 +01:00
d15d50d8a2
Refactor: Header helper code can use generic function
2015-12-30 15:05:52 +01:00
eed57af0bb
module header helpers: Add function to get NAME from header
2015-12-30 15:05:47 +01:00
be233b8aba
Add docs to BM module
2015-12-29 18:20:56 +01:00
ffcb951468
Add doc to module header helpers
2015-12-29 18:20:56 +01:00
e9cee25ac8
Add doc to module helpers
2015-12-29 18:20:56 +01:00
271c91e903
Add documentation on module helper utils
2015-12-29 18:20:56 +01:00
dc181ba8eb
Add doc to Module trait
2015-12-29 18:20:56 +01:00
68f66ca27d
Add BM::command_set_tags()
2015-12-28 21:51:08 +01:00
bcbd568311
Add BM::command_rm_tags()
2015-12-28 21:51:08 +01:00
7e401b5881
Add generic alter_tags_in_files() function
2015-12-28 21:51:08 +01:00
966e9902cb
BM header helpers: Add set_tags_in_header()
2015-12-28 21:25:51 +01:00
46b7ae9384
Add BM::command_add_tags()
2015-12-28 20:53:13 +01:00
cbefa577e9
Use get_files() to filter files, remove afterwards
...
Change get_files() signature, so we know whether there was a filter
applied, so we can abort the action if there was no filter involved.
2015-12-28 19:46:59 +01:00
e84986680d
Add functions to get files from Store by certain predicated (id, match, tags)
2015-12-28 19:42:35 +01:00
db204f3cba
BM::command_add(): Add URL verification
2015-12-28 18:47:17 +01:00
9db5ffa842
Implement BM::command_remove()
2015-12-28 18:02:32 +01:00
5a55636c65
Implement: BM: command_list()
2015-12-28 17:38:59 +01:00
7170f95825
BM header helpers: Add get_url_from_header()
2015-12-28 17:38:59 +01:00
2e7621d2bd
Add header helpers for BM
2015-12-28 17:38:59 +01:00
e346f56a8e
Fix: BM module name
2015-12-28 17:38:59 +01:00
523e6f8f66
Implement: BM::command_add()
2015-12-28 17:38:59 +01:00
df27e5d2a3
BM subcommands: Pass ArgMatches
2015-12-28 17:38:59 +01:00
c432e8c2c4
Add subcommand calling code
2015-12-28 17:38:59 +01:00
c6f31496ab
Module helpers: header: Add get_url_from_header()
2015-12-28 17:35:07 +01:00
62150c5a61
Add missing lifetimes
2015-12-27 18:00:31 +01:00
00d0bbf4ae
Add basic interface for BM module
2015-12-27 18:00:28 +01:00
dd7b412976
Remove code
2015-12-21 19:20:09 +01:00
188aacad75
Move FileHeader{Spec,Data} to own submodules
2015-12-06 13:09:51 +01:00
6e0d0058b0
Move key generating to top-level spec helpers
2015-12-06 12:49:31 +01:00
dad856ff2a
Move get_tags() from BM module to module utilities
2015-12-06 12:49:31 +01:00
7d40b68407
Rename: StorageBackend -> Storage
2015-12-06 12:49:02 +01:00
da2b482bda
Move Storage Backend code imag::storage::backend -> imag::storage
2015-12-06 12:47:08 +01:00
ab3ada0914
Move header helpers from module/header/ to module/helpers/
2015-12-05 16:03:05 +01:00
c6a2d39981
Outsource header utilities into header helper
2015-12-05 16:01:30 +01:00
9f59478da0
Readability fixes
2015-12-05 11:10:54 +01:00
93393751b2
Remove uneccessary variable
2015-12-05 11:06:22 +01:00
80563cb340
Move tag filtering to sub-function
2015-12-05 11:05:50 +01:00
e8c7df4593
Remove variable, use expression directly
2015-12-05 11:03:05 +01:00
166a0cf5dd
bm: remove_command: Refactor into sub-functions
2015-12-05 11:00:44 +01:00
230d00f35a
Remove unused imports
2015-12-05 01:23:06 +01:00
f7a92b6e79
Resort "use"
...
First comes std stuff
Second is external crates
Then we have own modules
All in alphabetical order and as few lines as possible if readability is
preserved.
2015-12-05 01:14:13 +01:00
55f740497b
Beautify get_tags() helper
2015-12-04 23:26:08 +01:00
cd1bb88f20
Rework remove_command()
2015-12-04 23:19:18 +01:00
87d5852986
Ensure we dont crash if there are no files found
2015-12-04 23:01:37 +01:00
08fa8f8655
Add debugging output
2015-12-04 21:56:48 +01:00