Class ACliCommand

    • Constructor Detail

      • ACliCommand

        public ACliCommand()
    • Method Detail

      • getNames

        public abstract java.lang.String[] getNames()
        Get the command names (name including alias').
        Specified by:
        getNames in interface ICliCommand
        Returns:
        A string array of the command name and optional further alias names.
      • getDescription

        public java.lang.String getDescription()
        Get the command description.
        Specified by:
        getDescription in interface ICliCommand
        Returns:
        The command description.
      • getExampleUsage

        public java.lang.String getExampleUsage()
        Get example usage(s).
        Specified by:
        getExampleUsage in interface ICliCommand
        Returns:
        Example usages.
      • invokeCommand

        public abstract java.lang.Object invokeCommand​(CliContext context,
                                                       java.util.Map<java.lang.String,​java.lang.Object> args)
        Invoke the command.
        Specified by:
        invokeCommand in interface ICliCommand
        Parameters:
        context - The context.
        args - The arguments.
      • getResultInfo

        public ResultInfo getResultInfo​(CliContext context,
                                        java.util.Map<java.lang.String,​java.lang.Object> args)
        Get the result info.
        Specified by:
        getResultInfo in interface ICliCommand
        Parameters:
        context - The context.
        Returns:
        The result info.
      • invokeCommand

        public IFuture<java.lang.String> invokeCommand​(CliContext context,
                                                       java.lang.String[] strargs)
        Invoke the command.
        Specified by:
        invokeCommand in interface ICliCommand
        Parameters:
        context - The context.
        args - The arguments.