zyedidia / eget

Easily install prebuilt binaries from GitHub.
MIT License
866 stars 39 forks source link

Allow downloading multiple assets from the same repository #57

Closed larsks closed 1 year ago

larsks commented 1 year ago

The operator-sdk project (https://github.com/operator-framework/operator-sdk) includes multiple binaries in each release:

I'd like to be able to download all of them, but this doesn't work:

eget operator-framework/operator-sdk \
  -a operator-sdk_linux_amd64 \
  -a ansible-operator_linux_amd64

Nor does this:

eget operator-framework/operator-sdk -a operator-sdk_linux_amd64
eget operator-framework/operator-sdk -a ansible-operator_linux_amd64
zyedidia commented 1 year ago

Invoking eget multiple times (the second way you listed) should work fine -- what's the issue you are having with it?

larsks commented 1 year ago

Because the target filename is based on the repository name, running eget multiple times will in both instances download the artifact to the same local filename. But! I realize now that I was maybe misreading the documentation on the --to option -- I thought it was just a destination directory, but I see it can actually specify the target file, so I think that resolves this. Sorry for the noise!