devops-works / binenv

One binary to rule them all. Manage all those pesky binaries (kubectl, helm, terraform, ...) easily.
MIT License
373 stars 44 forks source link

Add exa #97

Closed patsevanton closed 3 years ago

cleming commented 3 years ago

Hi @patsevanton

thank you for your contribution :tada:

thank you !

patsevanton commented 3 years ago

Hi @Cleming Update PR

cleming commented 3 years ago

Perfect :pray:

But doesn't work here

❯ binenv install exa
2021-04-21T15:03:05+02:00 WRN version for "exa" not specified; using "0.10.1"
2021-04-21T15:03:06+02:00 ERR unable to install "exa" (0.10.1) error="unable to download binary at https://github.com/ogham/exa/releases/download/0.10.1/exa-Linux-amd64-0.10.1.zip: 404 Not Found"

I think you have to do something like :

  exa:
    description: A modern replacement for ‘ls’.
    map:
      amd64: x86_64
    list:
      type: github-releases
      url: https://api.github.com/repos/ogham/exa/releases
    fetch:
      url: https://github.com/ogham/exa/releases/download/v{{ .Version }}/exa-{{ .OS }}-{{ .Arch }}-v{{ .Version }}.zip
    install:
      type: zip
      binaries:
        - exa

You can test it by editing your ~/.config/binenv/distributions.yaml and then binenv update exa -f and binenv install exa

cleming commented 3 years ago

lgtm @patsevanton :tada:

patsevanton commented 3 years ago

Great! Thanks!

leucos commented 3 years ago

Thanks !