jshell-maven-plugin icon indicating copy to clipboard operation
jshell-maven-plugin copied to clipboard

Add non-interactive mode

Open jycr opened this issue 1 year ago • 0 comments

it would be interesting to add a "non-interactive" mode to run scripts during build phases.

Cf. JShell documentation:

To accept input from standard input and suppress the interactive I/O, enter a hyphen (-) for load-files. This option enables the use of the jshell tool in pipe chains.

I don't know if it is better to add an option/parameter to the existing run goal, or if it is better to create another specific goal...

NB: According to the tests that I have been able to do, passing the scripts via stdin by indicating '-' as an argument, makes it possible not to have to add the /exit command at the end of the script

jycr avatar Aug 04 '23 13:08 jycr