Command line support via Commander.js
#525
Replies: 3 comments 7 replies
|
I added support of it as an external module for #524 (in |
|
Cool!
Addind sync functions is a hard no from me. It's 2024 and we have top-level await!
Please open whichever APIs are missing, but that one is there already, just do a |
|
It's really great to see all the work you're doing here @KaruroChori! Just to better help me understand what I'm up against here I have a couple of questions
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I hacked the popular
commander.jsto work with txiki.The implementation of the "adapter" I made is awful, but it works enough to run all the demos I tested.
https://github.com/KaruroChori/commander.js/tree/txiki
The main "issue" is that all the operations in txiki are async, while this library uses sync functions for virtually everything.
I left out some stuff like stdXXX.write, and there are few calls which should be implemented native in txiki like checking for files to exists. I will open issues to cover those.
All reactions