Commit graph

5 commits

Author SHA1 Message Date
9a3f3717de
feat(lib): address type related FIXMEs 2024-12-14 06:18:40 +00:00
ead60c003e
refactor(lib): use extension pattern for result<->option
Formerly, we used metatables to get custom `Option` and `Result` objects
which were difficult to type properly, leading to a lot of `unknown` and
`any` casts.

This refactor fixes it by making extensions opt-in, where we import the
extension methods separately from the original implementations, thereby
allowing us to not have to typecast things everywhere.
2024-12-13 14:33:05 +00:00
828339feaa fix(lib): fix exec detection fallthrough
If the executable was invalid, and wasn't PE or ELF, it would fall
through into the Mach-O case, which was a false positive.
2024-11-28 17:48:57 +00:00
b6f75cbda9 fix(lib): binary descriptor fallback not matching
* Fixes a bug which caused binary parsing fallbacks to not work as
  expected, due to a field unexpectedly being `None`.
* Fixed lint error to do with warn being potentially none by defining
  our own warn function instead. Also updated fallback binary parsing
  fallback warn message to be clearer.
* Fixed decompression error for non-supported artifacts by only
  decompressing those we support.
2024-11-25 08:10:05 +00:00
94706f8a9d refactor: restructure repo
* Restructures monorepo packages
* Updated pesde manifests with scope and other metadata
* Consolidated all interactive install logic into __call metamethod for
  one liner bin re-exports
* Renamed binlib->toolchainlib
* Introduced first real world package - stylua (!!)
2024-11-23 14:35:23 +00:00