Øystein Olsen
511278b66a
Fix wrong description of rebuild-index command in help text
2017-02-13 16:07:29 +01:00
Alexander Neumann
565d72ef36
Use cobra for all commands
2016-09-27 19:53:03 +02:00
Alexander Neumann
fa26ecc8f9
Make rebuild-index
use the code in package repository
2016-08-16 21:28:54 +02:00
Alexander Neumann
173940cbdf
Add repository.ListPack
2016-05-08 13:51:21 +02:00
Alexander Neumann
5ce1375ddd
Rename non-exported function
2016-02-27 13:10:35 +01:00
Alexander Neumann
4cefd456bb
Refactor rebuild-index code
...
This code reads all pack headers from all packs and rebuilds the index
from scratch. Afterwards, all indexes are removed. This is needed
because in #434 the command `optimize` produced a broken index that
did not contain a blob any more. Running `rebuild-index` should fix
this.
2016-02-27 13:10:35 +01:00
Alexander Neumann
4ae16d7661
repository: Use backend.ID to load index
...
This commit uses ParallelWorkFuncParseID() to load all indexes and
ignores file names with invalid format.
This fixes #475 .
2016-02-24 22:41:32 +01:00
Fabian Wickborn
442780f214
Move commands to src/cmds
2016-02-23 07:21:28 +01:00