Class LineReaderSecureReader

java.lang.Object
dev.getelements.elements.setup.LineReaderSecureReader
All Implemented Interfaces:
SecureReader

public class LineReaderSecureReader extends Object implements SecureReader
  • Constructor Details

    • LineReaderSecureReader

      @Inject public LineReaderSecureReader(org.jline.reader.LineReader lineReader)
  • Method Details

    • read

      public String read(String fmt, Object... args)
      Description copied from interface: SecureReader
      Reads a line from the console, insecurely.
      Specified by:
      read in interface SecureReader
      Parameters:
      fmt - the format
      args - thea arguments
      Returns:
      the value read from the console
    • reads

      public String reads(String fmt, Object... args)
      Description copied from interface: SecureReader
      Reads a single line from the terminal. Providing hte supplied prompt.
      Specified by:
      reads in interface SecureReader
      Parameters:
      fmt - the format string
      args - the format string args
      Returns:
      the string that was read from the terminal