zyedidia / eget

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

install all or provide range #15

Closed balta2ar closed 2 years ago

balta2ar commented 2 years ago

Some releases provide multiple binaries, e.g.:

$ eget eBay/tsv-utils                                                                                                                    
https://github.com/eBay/tsv-utils/releases/download/v2.2.1/tsv-utils-v2.2.1_osx-x86_64_ldc2.tar.gz                                                    
Downloading 100% [===================================================================================================] (11/11 MB, 5.951 MB/s)         
14 candidates for target exe `tsv-utils` found: please select manually                                                                                
(1) tsv-utils-v2.2.1_osx-x86_64_ldc2/extras/scripts/tsv-sort                                                                                          
(2) tsv-utils-v2.2.1_osx-x86_64_ldc2/extras/scripts/tsv-sort-fast                                                                                     
(3) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-split
(4) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-select
(5) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-pretty
(6) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-join
(7) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-filter
(8) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-summarize
(9) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/keep-header
(10) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-sample
(11) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-append
(12) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/tsv-uniq
(13) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/number-lines
(14) tsv-utils-v2.2.1_osx-x86_64_ldc2/bin/csv2tsv
Enter selection number:

and I'd naturally want to install most if not all of them. Would be nice if I could select (A) All or specify a range of numbers, or multiple numbers.

Wsine commented 2 years ago

I think this case is a prebuilt package rather prebuilt binary. I also wonder whether eget is intended to support them.

Personal speaking, it is better if eget could help to download the package and extract the files.

zyedidia commented 2 years ago

At the moment eget has been built to extract a single file. I can see that it would be useful to be able to also extract directories. I'll update you if that functionality is added.

zyedidia commented 2 years ago

Eget can now extract multiple files. Use the new --all option to extract all candidates, or the all option which now appears in prompts. You can also select a directory to be extracted, which will extract it and all files within recursively. I'll release a new version shortly.