zyedidia / eget

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

Library Usage #94

Open pateljoel opened 8 months ago

pateljoel commented 8 months ago

@zyedidia Would it be possible to use eget as a library? Can this also be done?

zyedidia commented 8 months ago

Currently it is not possible since all the code is in the main package, but with a little restructuring it wouldn’t be too hard to adjust. Do you have a general API in mind that would be most useful to you?

pateljoel commented 8 months ago

@zyedidia My use case would I would like to utilise eget's API in a command line program such that it could possibly update itself or download packages.

Allaman commented 4 months ago

I made a small CLI (allaman/werkzeugkasten) that calls eget via exec.Command. It gets the job done 😄