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 8b8eb1163b groovysh: additional example
8b8eb1163b is described below
commit 8b8eb1163bf4fbd39b8090baa082a9638df6f5ce
Author: Paul King <[email protected]>
AuthorDate: Wed Aug 27 15:37:40 2025 +1000
groovysh: additional example
---
subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
index d36f965955..081dbbe6dc 100644
--- a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
+++ b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
@@ -792,6 +792,16 @@ groovy> /widget -l |; /prnt -s JSON
]
----
+[source,jshell]
+----
+groovy> /ls --1 subprojects |; /head -n12 |; /tail -n5
+groovy-bom
+groovy-cli-commons
+groovy-cli-picocli
+groovy-console
+groovy-contracts
+----
+
It is less common, but it can also be used with code:
[source,jshell]