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

Readline support for the Groovy Shell in Jenkins CLI

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: cli
    • Labels:
    • Environment:
      Jenkins 1.575
    • Similar Issues:

      Description

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

        Attachments

          Activity

          Hide
          danielbeck 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).

          Show
          danielbeck 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).
          Hide
          dserodio 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.

          Show
          dserodio 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.
          Hide
          dserodio 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.

          Show
          dserodio 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.

            People

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

              Dates

              • Created:
                Updated: