We want to have a 'living' database of file entries. This means we need to support updating an existing database, not just writing a new one from scratch every time.
The proposed solution
Add a CLI group (docs here) for doing database operations. We will probably want something like:
create (create the database from scratch)
validate (with a force flag, to force re-validation of files we've already validated)
add-from-tree (add any files which aren't known in a tree to the database)
Assume for now that we only want to add entries i.e. we won't be deleting entries (although deletion would also be relatively straight forward).
The motivation
We want to have a 'living' database of file entries. This means we need to support updating an existing database, not just writing a new one from scratch every time.
The proposed solution
Add a CLI group (docs here) for doing database operations. We will probably want something like:
Assume for now that we only want to add entries i.e. we won't be deleting entries (although deletion would also be relatively straight forward).
Alternatives
Additional context