haxeget icon indicating copy to clipboard operation
haxeget copied to clipboard

`haxeget install latest`, and install haxe from github releases using octocrab

Open ninjamuffin99 opened this issue 2 years ago • 3 comments

"latest" will lead to the latest release uploaded to github releases ex: github.com/HaxeFoundation/haxe/releases/latest will link to the 4.3.4 tag/release.

octocrab is a crate I added since I'm too lazy to write up the API schema stuff... lol!

Using octocrab, we can make a nice and easy call to get the latest github haxe release, and nice and easily download it by passing in latest to haxeget install

todo

  • when inputting latest, make sure it gets logged as whatever the version downloaded was into the cache (haxeget list will show latest rather than 4.3.4)

ninjamuffin99 avatar Mar 28 '24 21:03 ninjamuffin99

Real neat! Please alert me once this is suitable to be merged. Do we need octocrab? Pretty sure I have everything exposed already?

l0go avatar Mar 29 '24 02:03 l0go

very likely don't need octocrab! I was just lazy lolol, i will poke into the github_schema and use those api bindings

I do think though it makes it nicer to not have to do any json / http request parsing/setup for github api, food for thought :)

ninjamuffin99 avatar Mar 29 '24 03:03 ninjamuffin99

very likely don't need octocrab! I was just lazy lolol, i will poke into the github_schema and use those api bindings

I do think though it makes it nicer to not have to do any json / http request parsing/setup for github api, food for thought :)

Do whatever you think will be best, I'll leave the judgement up to you.

l0go avatar Mar 29 '24 03:03 l0go