grace-console is a module that provides a REPL-like environment for Grace applications, enabling developers to interactively test code, query databases via GORM, and debug applications. It leverages Groovy's native console and shell capabilities integrated with Grace's Spring Boot context.
ConsoleCommand - A CLI command in grace-shell that launches the Grace interactive console by invoking the Gradle console task. It supports options like --debug-jvm for remote debugging and --verbose for detailed output.
During the 2024.x refactoring, the console module was enhanced with:
GrailsApplicationCommandRunner- Rewritten usingApplicationRunnerto support executing GORM methods in commandsGrailsApplicationScriptRunner- Rewritten usingApplicationRunnerfor script execution