Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.2
Description
Main.groovy invokes AnsiConsole commands in the static initializer, and runs initialization logic in static main. This prevents this logic to be modified for special usages of Groovysh. As one example see my problems starting groovysh from Gradle: http://forums.gradle.org/gradle/topics/starting_groovysh_from_gradle
So I suggest refactoring the main class such that it may be subclassed more easily and configured to suit particular needs.