devops-works / binenv

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

`expand` command #100

Closed leucos closed 2 years ago

leucos commented 3 years ago

bienv does not currently work in sudo situations. For instance:

sudo termshark -i eth0

fails, as weel as

sudo $(which termshark)

One way to make it work would be to completely dereference the binary, e.g.

sudo ~/.binenv/binaries/termshark/2.2.0 -i eth0

A new expand command would allow retrieving the proper path for commands:

sudo $(binenv expand termshark) -i eth0

(unless we find a better solution)