All Implemented Interfaces:
Argument

public class EchoCmd extends Subcommand
A subcommand of DebugCmd which simply echoes the given string.

Provides a required second (third in context of its parent command) TypedArg which accepts a String to echo.

Aliases: echo, e, print, p

Typical Usage:


     debug echo "hi"      - Prints hi
     dbg echo yo          - Prints yo
     d e huh              - Prints huh
     

Author:
Lehlogonolo Poole
See Also:
  • Constructor Details

    • EchoCmd

      public EchoCmd()
  • Method Details

    • run

      public void run(Invoker invoker, SafeJLabel logLabel, String aliasUsed, Object[] args, ArrayList<TaggedArgValue<?>> taggedArgs)
      Description copied from class: Command
      The method to be overridden by subclasses to implement command functionality.
      Overrides:
      run in class Command
      Parameters:
      invoker - The invoker of this command
      logLabel - The JLabel to display log messages.
      aliasUsed - The alias of the command that was used to invoke it.
      args - The arguments passed to the command.
      taggedArgs - Tagged arguments passed to the command.