This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 37a0cd3dc1 GROOVY-8162: Update Groovysh to JLine3 (support /slurp for
CSV)
37a0cd3dc1 is described below
commit 37a0cd3dc1df72fe2e4f3fa460bf89b6e11b66d5
Author: Paul King <[email protected]>
AuthorDate: Wed Jul 23 14:11:13 2025 +1000
GROOVY-8162: Update Groovysh to JLine3 (support /slurp for CSV)
---
.../main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
index 9677f2ba63..2cbecc1171 100644
---
a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
+++
b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/jline/GroovyCommands.groovy
@@ -299,7 +299,7 @@ class GroovyCommands extends JlineCommandRegistry
implements CommandRegistry {
throw new IllegalArgumentException("$format format
requires $parserName to be available")
}
def parser =
engine.execute("${parserName}.DEFAULT.builder().setHeader().setSkipHeaderRecord(true).build()")
- out =
parser.parse(path.newReader(encoding.displayName())).toList()
+ out =
parser.parse(path.newReader(encoding.displayName())).toList()*.toMap()
} else if (format == 'PROPERTIES') {
out = path.withInputStream{ is ->
new Properties().tap {load(is) }