Class Shell.Command

    • Constructor Detail

      • Command

        public Command()
    • Method Detail

      • registerCompletionGeneral

        public void registerCompletionGeneral​(Token root,
                                              Set<String> args,
                                              boolean caseSens)
      • execute

        public abstract int execute​(String fullCommand,
                                    org.apache.commons.cli.CommandLine cl,
                                    Shell shellState)
                             throws Exception
        Throws:
        Exception
      • description

        public abstract String description()
      • numArgs

        public abstract int numArgs()
        If the number of arguments is not always zero (not including those arguments handled through Options), make sure to override the usage() method. Otherwise, usage() does need to be overridden.
      • getName

        public String getName()
      • printHelp

        public final void printHelp​(Shell shellState)
      • printHelp

        public final void printHelp​(Shell shellState,
                                    int width)
      • getOptionsWithHelp

        public final org.apache.commons.cli.Options getOptionsWithHelp()
      • usage

        public String usage()
      • getOptions

        public org.apache.commons.cli.Options getOptions()