Command line support via Commander.js
#525
Replies: 3 comments 7 replies
-
I added support of it as an external module for #524 (in |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
-
I hacked the popular
commander.js
to 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.
Beta Was this translation helpful? Give feedback.
All reactions