grizzled.cmd

NoCompletionsHandler

trait NoCompletionsHandler extends CommandHandler

Mixed in to indicate no completions are available.

Linear Supertypes
CommandHandler, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NoCompletionsHandler
  2. CommandHandler
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract val CommandName: String

    The name of the command.

    The name of the command. This name, or any of the aliases (see below) will cause the command to be invoked.

    Definition Classes
    CommandHandler
  2. abstract val Help: String

    The help for this command.

    The help for this command. The help string is written as is to the screen. It is not wrapped, indented, or otherwise reformatted. It may be a single string or a multiline string.

    Definition Classes
    CommandHandler
  3. abstract def runCommand(command: String, unparsedArgs: String): CommandAction

    Handle the command.

    Handle the command. The first white space-delimited token in the command string is guaranteed to match the name of this command, by the rules of the matches() method.

    command

    the command that invoked this handler

    unparsedArgs

    the remainder of the unparsed command line

    returns

    KeepGoing to tell the main loop to continue, or Stop to tell the main loop to be done.

    Definition Classes
    CommandHandler

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. val aliases: List[String]

    Additional aliases for the command, if any.

    Additional aliases for the command, if any.

    Definition Classes
    CommandHandler
  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def commandNameCompletions(prefix: String): List[String]

    Compares a prefix string to this command name and its aliases, to determine whether the prefix string could possibly be completed by the name or aliases.

    Compares a prefix string to this command name and its aliases, to determine whether the prefix string could possibly be completed by the name or aliases. This method is obviously used to facilitate tab-completion. The default implementation of this method simply forces both strings to lower case before performing a substring comparison between them. Overridden definitions of this method can apply other matching criteria.

    prefix

    the prefix to compare

    returns

    a list of the strings (name and/or aliases) that could be completed by prefix, or Nil.

    Definition Classes
    NoCompletionsHandlerCommandHandler
  8. def complete(token: String, context: List[CompletionToken], commandLine: String): List[String]

    Perform completion on the command, returning the possible completions.

    Perform completion on the command, returning the possible completions. This method has the exact same interface and use as the complete() method in grizzled.readline.Completer. Please see that trait for full documentation.

    token

    the token being completed

    context

    the token context (i.e., list of parsed tokens, with cursor)

    commandLine

    the current unparsed input line, which includes the token

    Definition Classes
    CommandHandler
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  14. val hidden: Boolean

    Whether or not the command is hidden.

    Whether or not the command is hidden. Hidden commands don't show up in the help list or the history. Using the HiddenCommandHandler trait saves a lot of work.

    Definition Classes
    CommandHandler
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def matches(candidate: String): Boolean

    Compares a command name (that the user typed in, for instance) to this command's name.

    Compares a command name (that the user typed in, for instance) to this command's name. The default implementation of this method simply forces both names to lower case before comparing them. Overridden definitions of this method can apply other matching criteria.

    candidate

    the candidate name to be compared with this one

    returns

    true if they match, false if not

    Definition Classes
    CommandHandler
  17. def moreInputNeeded(lineSoFar: String): Boolean

    This method is called after a line is read that matches this command, to determine whether more lines need to be read to finish the command.

    This method is called after a line is read that matches this command, to determine whether more lines need to be read to finish the command. The default implementation returns false, meaning a single input line suffices for the entire command. Implementing classes or objects can override this method to ensure that the command has a required terminating character (e.g., a ";"), doesn't end with a line continuation character (e.g., "\"), or whatever the syntax requires.

    lineSoFar

    the line read so far

    Definition Classes
    CommandHandler
  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. val storeInHistory: Boolean

    Whether or not the command should be put in the history.

    Whether or not the command should be put in the history.

    Definition Classes
    CommandHandler
  22. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  23. def toString(): String

    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from CommandHandler

Inherited from AnyRef

Inherited from Any

Ungrouped