Hi Dan Vega, Do you have any video which explains about building command-line implementation for a java program? I should run that command line implementation in any system. Please reply.
Thanks man. Your Turtorials are really GREAT. I saw your video on GraalVM Native Images and got motivated to start with Spring Shell, so I had the idea of building a simple CLI that executes system shell commands such as "apt-get update" and "apt-get upgrade" since i'm on a linux distro. However, I didn't find any helpful sections about this in Spring Shell docs (or i'm blind!) nor on the web. Could you please point me somewhere where I can find some help. Thanks again!
Why did you have to run up a Netty Server on 8080 if you're running a CLI application? Also if that port is already in use the app won't run, I don't think that's needed.
Hello guys, do you know why default quit/exit commands doesn't work? I'm closing the app with custom method and use of System.exit(0), but would like to understand what is happening with the standard ExitRequest there.
Hi, how can implement this with Java 21? When I try to convert it to a native application I am seeing an error. I understand that maven compiler doesn't support Java21. "Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project demo: Fatal error compiling: error: release version 21 not supported" Thanks!
I'm unable to see shell in terminal.. I followed the same steps edit: okay I figured it out.. we need change the application.properties and add this : spring.shell.interactive.enabled=true
@DanVega ,getting error this error, org.jline : Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information) while running it on Mac OS in eclipse. can anyone please help me on this?
Since Spring 3.3.x, they have disabled interactive shell by default. You need to add the above property mentioned in your application.properties file and it works fine.
Very interesting to see this one after the live segments for it. A nice showcase of spring not just being for webapplications.
Thank's for showing up to the live streams and for all of your help Simon 👏🏻
Came for Spring Shell. Learned about setting up Client ! Awesome.
Exactly what I was looking for....You've been a great help.
Great video. I have just started creating a Spring Shell application!
Thanks for this amazing explanation on Spring Shell. How would you write tests for it?
It would be interesting to refactor your previous implementation of ChatGPT-Java CLI with Spring Shell.
Great video ! Is there a way to launch a command in non-interactive mode ?
Great video.
Why did you have to add reactive dependency?
Hi Dan Vega, Do you have any video which explains about building command-line implementation for a java program? I should run that command line implementation in any system. Please reply.
Thanks man. Your Turtorials are really GREAT. I saw your video on GraalVM Native Images and got motivated to start with Spring Shell, so I had the idea of building a simple CLI that executes system shell commands such as "apt-get update" and "apt-get upgrade" since i'm on a linux distro. However, I didn't find any helpful sections about this in Spring Shell docs (or i'm blind!) nor on the web. Could you please point me somewhere where I can find some help. Thanks again!
amazing. loved it be making much more helpfull videos.
Can we disable the prompt shell `shell:>` ?
So you can just pass the commands and arguments in single line like $ cli command sub-command arguments ?
do you have an answer for your question ?
Great video
why does your intelli j look so different? what theme are you using? it's pretty cool
Why did you have to run up a Netty Server on 8080 if you're running a CLI application? Also if that port is already in use the app won't run, I don't think that's needed.
Hello guys, do you know why default quit/exit commands doesn't work? I'm closing the app with custom method and use of System.exit(0), but would like to understand what is happening with the standard ExitRequest there.
Hi, how can implement this with Java 21? When I try to convert it to a native application I am seeing an error. I understand that maven compiler doesn't support Java21. "Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project demo: Fatal error compiling: error: release version 21 not supported" Thanks!
Hi Dan, why do we need an interface?
it's new Spring Framework feature 'Declarative Client or Interface Client' similar to Fiegn.
I'm unable to see shell in terminal.. I followed the same steps
edit:
okay I figured it out.. we need change the application.properties and add this : spring.shell.interactive.enabled=true
@DanVega ,getting error this error, org.jline : Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information) while running it on Mac OS in eclipse.
can anyone please help me on this?
Run the application from your IDE or run the jar from your project's target folder (java -jar target/.jar).
When I run app, shell doesn't appear. Why it happens?
You need spring.shell.interactive.enabled=true in your application.properties file
Since Spring 3.3.x, they have disabled interactive shell by default. You need to add the above property mentioned in your application.properties file and it works fine.