devops-works / binenv

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

custom distribution.yaml file to be included locally #253

Closed xinity closed 4 months ago

xinity commented 7 months ago

hey there,

it's an awesome project i've discovered here, hoping it will leave for a long time onward :)

i've been wondering if there is a possibility to create our own distribution.yaml file and have it "included" in the default one ?

something like:

if custom-distribution.yaml exist
then
include custom-distribution.yaml 

that would be so freaking cool :)

keep up the awesome work anyway !

leucos commented 4 months ago

@xinity this is now on the develop branch if you want to try it out ;)

You can add a .yaml file in ~/.config/binenv with your custom sources. Note that files are evaluated in lexicographical order, so if a key if defined in aaa.yaml and then in distributions.yml, the value defined in aaa.yaml will be overriden by the one in distribution.yaml.

Will merge and release soon.

Sorry for the wait.

xinity commented 4 months ago

Kowabonga!!!!!

leucos commented 4 months ago

released in v0.20.0 :tada: (also included: implementation for binenv local ...)

leucos commented 4 months ago

FTR latest binenv release lets you use a token to fetch releases from private repos (GitHub only for now)

See https://github.com/devops-works/binenv?tab=readme-ov-file#using-custom-distributions-file-and-private-gitlab-repos for more info.