should we make a dev.jbang.ext jar library that provides some basic 'os' / terminal functions? #978
Unanswered
maxandersen
asked this question in
Ideas
Replies: 2 comments 5 replies
-
YEs, that has always seemed like an interesting idea to me. |
Beta Was this translation helpful? Give feedback.
5 replies
-
also just realized java does not have a decent way to show an image. python its: image.show(); java is 10ish+ lines of jframe/awt mess. using/recommending imagej might be the way forward there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/google/zx which is a 'use node.js to write scripts
kinda thing made me play with https://gitlab.com/ongresinc/fluent-process to which I added a
$()` method to allow simpler shell calls in java:perfect for jbang but its in custom fork atm.
in zx they also have easy method for fetching http requests, ie.
fetch('http://wttr.in')
and question methods which https://github.com/awegmann/consoleui maybe be a good alternative for, minimist for parsing...picocli, and a few other bitswe could recommend user to import all these various packages but i'm wondering if we should make a maven module that import them all at once and/or even fork or wrap them to make a simpler unified version of them available under
dev.jbang.ext
or similar ?....what I was thinking was if we had this set of "good" libs then make it so if you named your .jsh file for .jshx then we would automatically add them and thus make the files even shorter/simpler.
For now just an idea that been bumping around my head.....wdyt ?
Beta Was this translation helpful? Give feedback.
All reactions