java.lang.Object
org.springframework.shell.core.command.Clear
All Implemented Interfaces:
Command

public class Clear extends Object implements Command
ANSI console clear command.
Author:
Eric Bottard, Janne Valkealahti, Mahmoud Ben Hassine
  • Constructor Details

    • Clear

      public Clear()
  • Method Details

    • getDescription

      public String getDescription()
      Description copied from interface: Command
      Get a short description of the command.
      Specified by:
      getDescription in interface Command
      Returns:
      the description of the command
    • getGroup

      public String getGroup()
      Description copied from interface: Command
      Get the group of the command.
      Specified by:
      getGroup in interface Command
      Returns:
      the group of the command
    • execute

      public ExitStatus execute(CommandContext commandContext) throws Exception
      Description copied from interface: Command
      Execute the command within the given context.
      Specified by:
      execute in interface Command
      Parameters:
      commandContext - the context of the command
      Returns:
      the exit status of the command
      Throws:
      Exception