Say I have a SomeThings.groovy
file:
def someVar = 'abc'
def someFunc(a) {
a + 1
}
I start groovysh with the above file on the classpath and do:
groovy:000> import SomeThings
===> SomeThings
groovy:000>
All good. However:
groovy:000> someVar
Unknown property: someVar
groovy:000> someFunc(1)
ERROR groovy.lang.MissingMethodException:
No signature of method: groovysh_evaluate.someFunc() is applicable for argument types: (java.lang.Integer) values: [1]
groovy:000>
How do I reference someVar
and someFunc
from groovysh?