Class LegacyCommandContainer

  • All Implemented Interfaces:
    AutoCloseable, org.aesh.command.container.CommandContainer<CLICommandInvocation>

    public class LegacyCommandContainer
    extends org.aesh.command.container.DefaultCommandContainer<CLICommandInvocation>
    A container that wraps a CommandHandler in order to allow to mix legacy commands with new commands when aesh operators are in use. Aesh parsing and completion are disabled and delegated to legacy parsing and completion.
    Author:
    jdenise@redhat.com
    • Constructor Detail

      • LegacyCommandContainer

        public LegacyCommandContainer​(CommandContextImpl ctx,
                                      String[] names,
                                      CommandHandler handler)
                               throws org.aesh.command.parser.CommandLineParserException
        Throws:
        org.aesh.command.parser.CommandLineParserException
    • Method Detail

      • getParser

        public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> getParser()
      • haveBuildError

        public boolean haveBuildError()
      • getBuildErrorMessage

        public String getBuildErrorMessage()