sim: Add metadata command

Only really needed for completeness, preferred content expressions can
match against metadata.
This commit is contained in:
Joey Hess 2024-09-26 12:20:37 -04:00
parent b492eb051b
commit 783e910d0c
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 46 additions and 16 deletions

View file

@ -309,16 +309,6 @@ as passed to "git annex sim" while a simulation is running.
Sets the trust level of the repository. This is equivilant to
[[git-annex-trust]](1), [[git-annex-untrust]](1), etc.
* `group repo group`
Add a repository to a group. This is equivilant to
[[git-annex-group]](1).
* `ungroup repo group`
Remove a repository from a group. This is equivilant to
[[git-annex-ungroup]](1).
* `wanted repo expression`
Configure the preferred content of a repository. This is equivilant
@ -352,6 +342,22 @@ as passed to "git annex sim" while a simulation is running.
Configure the groupwanted to a random expression.
* `group repo group`
Add a repository to a group. This is equivilant to
[[git-annex-group]](1).
* `ungroup repo group`
Remove a repository from a group. This is equivilant to
[[git-annex-ungroup]](1).
* `metadata filename expression`
Change the metadata of the simulated file. The expression is
in the same format as the --set option of the [[git-annex-metadata]]
command. For example: `metadata foo year=2025`
* `maxsize repo size`
Configure the maximum size of a repository. This is equivilant to

View file

@ -28,11 +28,7 @@ Planned schedule of work:
## work notes
* Currently working in [[todo/proving_preferred_content_behavior]]
in the `sim` branch.
* sim: Add support for metadata, so preferred content that matches on it
will work
* Currently working in [[todo/proving_preferred_content_behavior]].
* The sim cannot be safely interrupted, or two processes be run
concurrently. Both unlike other git-annex commands. Either document these