Class BatchModeCommandHandler

    • Constructor Detail

      • BatchModeCommandHandler

        public BatchModeCommandHandler​(CommandContext ctx,
                                       String command,
                                       boolean connectionRequired)
    • Method Detail

      • isBatchMode

        public boolean isBatchMode​(CommandContext ctx)
        Description copied from interface: CommandHandler
        Whether the command supports batch mode or not. The result could depend on the context, e.g. it won't make sense to add 'some_command --help' to a batch.
        Specified by:
        isBatchMode in interface CommandHandler
        Overrides:
        isBatchMode in class CommandHandlerWithHelp
        Parameters:
        ctx - the current context
        Returns:
        true if the command can be added to the batch, otherwise - false.