java.lang.Object
org.springframework.shell.standard.commands.History

@ShellComponent public class History extends Object
A command that displays all previously run commands, optionally dumping to a file readable by Script.
  • Constructor Details

    • History

      public History(org.jline.reader.History jLineHistory)
  • Method Details

    • history

      @ShellMethod("Display or save the history of previously run commands") public List<String> history(@ShellOption(help="A file to save history to.",defaultValue="__NULL__") File file) throws IOException
      Throws:
      IOException