core icon indicating copy to clipboard operation
core copied to clipboard

Wishlist: ocrd workspace download

Open mikegerber opened this issue 4 years ago • 4 comments

Currently ocrd workspace find --download is the way to download the files of a workspace. I propose aliasing this to an - arguably - more user-friendly ocrd workspace download command.

mikegerber avatar Sep 15 '21 12:09 mikegerber

I'm unsure if "arguably" is the right word here. What I mean is: It is to be discussed if this new command would be more user-friendly. I think it would be, because I don't want to "find" any files.

mikegerber avatar Sep 15 '21 12:09 mikegerber

It would not be a huge effort to implement this, I'll have a go at it once time permits. PR welcome :)

kba avatar Dec 07 '21 11:12 kba

Found myself wanting this again, I'll try to come up with a PR.

@kba can you try assigning this issue to me? (Can't self assign, not sure if you can)

mikegerber avatar Feb 24 '23 16:02 mikegerber

Having a dedicated CLI command for this opens up the opportunity to give it an optionally different behaviour: downloading without changing the refs! (So essentially, this could just do what mm-update download offers explicitly and ocrd.workspace.Workspace.download_file implicitly: storing a copy under a reproducible local file name, unless already present there.)

bertsky avatar Feb 26 '23 23:02 bertsky