Built a CLI application with Java? Which library did you use? What challenges have you encountered? I'd love to hear about your experience! #Java
7 reposts18 likes
Built a CLI application with Java? Which library did you use? What challenges have you encountered? I'd love to hear about your experience! #Java
7 reposts18 likes
I miss Inquirer like library to take user inputs. Except that, Spring Shell with GraalVM works fine. github.com/SBoudrias/In...
Didn’t know about Inquirer, I’ll check it out! Spring Shell provides Flow Components to build interactive CLIs. I wonder if that’s similar to what Inquirer provides? docs.spring.io/spring-shell...
For ttcli (github.com/wimdeblauwe/...), I use Spring Shell and graalvm. Works quite good, although I had to do a workaround for github.com/oracle/graal... for the native compilation.
Bootique is a CLI-oriented Java app engine. So not just a CLI parser, but its core architecture is linked with CLI flags bootique.io/docs/3.x/boo...
picocli is good, Spring Shell is also very neat. both work with @graalvm.org 😎
Just adding up Picocli + @micronautfw.bsky.social (+ optionally @graalvm.org ). So far I only tried with our Pierrot app agorapulse.github.io/pierrot/
Nice! Here are a couple of tools using it, with a broad range of features used. github.com/michael-simo... github.com/michael-simo... github.com/michael-simo... Also nice with JBang github.com/michael-simo... Btw is Remko Popma here as well?
For kcctl 🧸 (github.com/kcctl/kcctl), we are using picocli, compiled into native binaries via @quarkus.io and @graalvm.org. A bit of a learning curve ("pico" is a bit of a misnomer), but once you got the hang, it's really good. Fast enough to launch it even for tab completions, doing a REST call!