-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScriptREPL: CLI arg to disable verbose #451
Comments
@jayvdb Good idea to have a CLI entry point for SciJava scripts, which can be used from jgo. I coded something up: bdd6b1a You can try it via:
You may want to omit the I tested the following example: $ cat hello.groovy
#@ String name
#@ int age
#@output String greeting
greeting = "Hello, ${name}, who is ${age} years old!"
P.S. I saw your other recent issues filed in the jgo repo, and would like to help there as well, but will not have time immediately for some days due to other urgent commitments. |
Thanks.
No. |
Thanks. I did a quick test, but dont have a kotlin/kotlinc locally and it didn't work with an error. I'm not sure where the problem exists, so I dumped that in scijava/scripting-kotlin#10 . I will need to recheck (should be sometime this weekend), but I dont recall having this problem with |
I get the following if I dont have a kotlin/kotlinc handy
and now I also cant get the REPL working if I dont have a kotlin/kotlinc handy.
Even with kotlin/kotlinc and KOTLIN_HOME set, I still see those same errors. Seems like I may need to manually add some extra jars. Perhaps https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-gradle-plugin |
I can get the CLI working with
However nothing is emitted.
fun show() {
println("b")
println("2 b")
var a: Double = 2.1
println("$a")
val b = 2.1
println("$b")
val c = true
if (true) {
val __tmp1 = if (c) "True" else "False"
println("$__tmp1")
}
}
fun main(argv: Array<String>) {
show()
} I guess it isnt calling |
I would like to use ScriptREPL to invoke a Kotlin script, and it works when run like so:
however I end up with a header of
followed by the "help()"
Can we add a CLI arg like "quiet", or a different Main-Class, which doesnt emit this before running the script?
The text was updated successfully, but these errors were encountered: