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 e358e9d0b8 GROOVY-8162: Update Groovysh to JLine3 (document /console 
and /inspect)
e358e9d0b8 is described below

commit e358e9d0b867555d98aa5b2ca7104c3bf0b8dd2e
Author: Paul King <[email protected]>
AuthorDate: Mon Aug 4 19:46:29 2025 +1000

    GROOVY-8162: Update Groovysh to JLine3 (document /console and /inspect)
---
 .../src/spec/doc/assets/img/repl_console.png           | Bin 0 -> 223567 bytes
 .../src/spec/doc/assets/img/repl_inspect.png           | Bin 0 -> 407584 bytes
 .../src/spec/doc/assets/img/repl_inspect_gui.png       | Bin 0 -> 97283 bytes
 subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc |  16 ++++++++++++++--
 4 files changed, 14 insertions(+), 2 deletions(-)

diff --git 
a/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_console.png 
b/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_console.png
new file mode 100644
index 0000000000..800094b0b5
Binary files /dev/null and 
b/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_console.png differ
diff --git 
a/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_inspect.png 
b/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_inspect.png
new file mode 100644
index 0000000000..35e5e0b09e
Binary files /dev/null and 
b/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_inspect.png differ
diff --git 
a/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_inspect_gui.png 
b/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_inspect_gui.png
new file mode 100644
index 0000000000..d4bd7d8f18
Binary files /dev/null and 
b/subprojects/groovy-groovysh/src/spec/doc/assets/img/repl_inspect_gui.png 
differ
diff --git a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc 
b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
index e336a09018..64017592c2 100644
--- a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
+++ b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
@@ -372,6 +372,13 @@ Displays the available colors.
 
 image:assets/img/repl_colors.png[Colors, width=80%]
 
+[[GroovyShell-console]]
+==== `/console`
+
+Displays the current buffer in the GroovyConsole.
+
+image:assets/img/repl_console.png[Console, width=80%]
+
 [[GroovyShell-del]]
 ==== `/del`
 
@@ -515,8 +522,13 @@ import java.util.concurrent.BlockingQueue
 [[GroovyShell-inspect]]
 ==== `/inspect`
 
-Opens the GUI object browser to inspect a variable or the result of the
-last evaluation.
+Display or browse object info on the terminal or object browser.
+
+image:assets/img/repl_inspect.png[Usage of the /inspect command, width=80%]
+
+Using the `--gui/-g` option displays the object in Groovy's object browser:
+
+image:assets/img/repl_inspect_gui.png[Usage of the /inspect command, width=80%]
 
 [[GroovyShell-less]]
 ==== `/less`

Reply via email to