Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3940

Reuse ConsoleReader output stream in shell

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.8.0
    • shell
    • None

    Description

      The shell currently has a constructor which takes an extra, unnecessary output stream parameter. The ConsoleReader object already has an OutputStream associated with it, which we can use. There is a comment in the shell to use that for the printing of the help when it became available. I'm guessing that it did during the transition from jline1 to jline2.

      We can drop the extra constructor parameter, and internally reuse the ConsoleReader's output stream to print the help.

      Attachments

        Activity

          People

            ctubbsii Christopher Tubbs
            ctubbsii Christopher Tubbs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m