Commit graph

11 commits

Author SHA1 Message Date
472813b41b
style: apply stylua formatter 2024-12-25 16:11:05 +00:00
7bf8063366
feat(lib): make ProgressBar:nextStage return a result 2024-12-16 19:28:28 +00:00
202dc85147
feat(lib): add a touch of color to progress bar
Also moves bar stopping logic for errors into pcall handler.
2024-12-13 18:04:42 +00:00
2f79159f95
fix(lib): progress bar interfering with warns
* Fixed overlapping warns and progress bar.
* Removed unnecessary `resume` and `stop` bar methods.
2024-12-13 17:52:28 +00:00
c69a7417a0
feat(lib): include optional progress bar
Includes an optional progress bar which gets enabled when lib is called
using the default convenience `__call` metamethod.
2024-12-13 16:25:42 +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
45627ea4a9
feat(lib): only download asset when it is of a valid format
Small optimization to not fetch an asset if its need of a supported
compression format.
2024-12-13 13:51:38 +00:00
21c4a0b9cf style: apply formatting to all files 2024-11-25 11:47:56 +00:00
95afc33630 fix(lib): bad argument to Start-Process cmdlet 2024-11-25 11:43:15 +00:00
3a65776a3c fix(lib): decompression on windows
* Decompression on windows failed since the `Start-Process` cmdlet exited
  immediately after spawning the process. Fixed by including the `-Wait`
  argument.
* We were using `unzip` on all platforms, and it does not exist on
  Windows. Instead, now we use the `Expand-Archive` cmdlet for
  decompression on windows.
2024-11-25 11:24:18 +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