Class ShellCommand

  • All Implemented Interfaces:
    Command

    public class ShellCommand
    extends java.lang.Object
    implements Command
    Implements a tiny shell interpreter for the nomulus tool.

    Parses a very simple command grammar. Tokens are either whitespace delimited words or double-quoted strings.

    • Constructor Summary

      Constructors 
      Constructor Description
      ShellCommand​(google.registry.tools.CommandRunner runner)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ShellCommand buildCompletions​(com.beust.jcommander.JCommander jcommander)  
      void run()
      Run the shell until the user presses "Ctrl-D".
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShellCommand

        public ShellCommand​(google.registry.tools.CommandRunner runner)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • buildCompletions

        public ShellCommand buildCompletions​(com.beust.jcommander.JCommander jcommander)
      • run

        public void run()
        Run the shell until the user presses "Ctrl-D".
        Specified by:
        run in interface Command