checkpresentkey: Allow to be run without an explicit remote and add --batch

* checkpresentkey: Allow to be run without an explicit remote.
* checkpresentkey: Added --batch.
This commit is contained in:
Joey Hess 2016-02-12 16:43:51 -04:00
parent 84d657312e
commit cc4d3e3d45
Failed to extract signature
5 changed files with 90 additions and 23 deletions

View file

@ -1,3 +1,5 @@
While being asked to check if file is available from "[datalad-archives]" remote I need to check if the archive's key available. Ideally I wish I could ask through the ongoing interaction protocol, but if not, I could use smth like 'git annex checkpresentkey' but that one demands specification also of a remote which to check. In my case I just want to know if that key is available from any remote, so I could confirm that the file is still present in our archives remote, i.e. that it could be retrieved later on
[[!meta author=yoh]]
> [[done]]] --[[Joey]]

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2016-02-12T20:07:30Z"
content="""
Makes sense, and also I will add a --batch mode to it.
Done.
"""]]