Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-29084

Readline support for the Groovy Shell in Jenkins CLI

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • cli
    • Jenkins 1.575

      Please add support for readline editing in Jenkins CLI's Groovy Shell (groovysh), it would make interactive scripting so much easier…

          [JENKINS-29084] Readline support for the Groovy Shell in Jenkins CLI

          Daniel Beck added a comment -

          Please explain in detail exactly what you mean by 'readline editing', keeping in mind that Jenkins, as a Java tool, does not have easy access to the readline library (even ignoring the license issue entirely).

          Daniel Beck added a comment - Please explain in detail exactly what you mean by 'readline editing', keeping in mind that Jenkins, as a Java tool, does not have easy access to the readline library (even ignoring the license issue entirely).

          At least on OS X, Groovy Shell (groovysh) has support for using the up arrow to recall the previous command, left arrow to move to the previous word, etc, besides using Ctrl+R to perform a reverse incremental search. From a quick glance at the "lib" directory it seems that it uses the jline library for this.

          Daniel Serodio added a comment - At least on OS X, Groovy Shell (groovysh) has support for using the up arrow to recall the previous command, left arrow to move to the previous word, etc, besides using Ctrl+R to perform a reverse incremental search. From a quick glance at the "lib" directory it seems that it uses the jline library for this.

          The Groovy docs confirm that it uses JLine2 for this:

          Rich cross-platform edit-line editing, history and completion thanks to JLine2.

          Daniel Serodio added a comment - The Groovy docs confirm that it uses JLine2 for this: Rich cross-platform edit-line editing, history and completion thanks to JLine2.

            Unassigned Unassigned
            dserodio Daniel Serodio
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: