Class Alias


public class Alias extends OptionsConsoleCommand
the alias command will add/remove/modify aliases to the CLI input reader. aliases will be expanded and take priority over standard commands.
  • Constructor Details

    • Alias

      public Alias()
      Parameters:
      _commandNames -
  • Method Details

    • getCommandDescriptions

      public String getCommandDescriptions()
      Description copied from class: IConsoleCommand
      return high-level help about the commands supported by this object.
      Specified by:
      getCommandDescriptions in class IConsoleCommand
      Returns:
    • execute

      public void execute(String commandName, ConsoleInput console, org.apache.commons.cli.CommandLine commandLine)
      Description copied from class: OptionsConsoleCommand
      execute using the specified command line.
      Specified by:
      execute in class OptionsConsoleCommand
      Parameters:
      commandName -
      console -
      commandLine -
    • printAlias

      private void printAlias(ConsoleInput ci, String aliasName)
      Parameters:
      aliasName -
    • deleteAlias

      private void deleteAlias(ConsoleInput ci, String aliasName)
      Parameters:
      object -
    • addAlias

      private void addAlias(ConsoleInput ci, String aliasName, List argList)
      Parameters:
      argList -
      object -
    • printAliases

      private void printAliases(ConsoleInput ci)
      prints out a list of all the aliases
      Parameters:
      out -