eget icon indicating copy to clipboard operation
eget copied to clipboard

Library Usage

Open pateljoel opened this issue 2 years ago • 3 comments

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

pateljoel avatar Dec 22 '23 10:12 pateljoel

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?

zyedidia avatar Dec 22 '23 20:12 zyedidia

@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.

pateljoel avatar Dec 24 '23 14:12 pateljoel

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

Allaman avatar Apr 20 '24 11:04 Allaman