Interface ICliCommand

    • Method Detail

      • getNames

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

        java.lang.String getDescription()
        Get the command description.
        Returns:
        The command description.
      • getExampleUsage

        java.lang.String getExampleUsage()
        Get example usage(s).
        Returns:
        Example usages.
      • getArgumentInfos

        ArgumentInfo[] getArgumentInfos​(CliContext context)
        Get the argument info.
        Parameters:
        context - The context.
        Returns:
        The argument infos.
      • getResultInfo

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

        java.lang.Object invokeCommand​(CliContext context,
                                       java.util.Map<java.lang.String,​java.lang.Object> args)
        Invoke the command.
        Parameters:
        context - The context.
        args - The arguments.
      • invokeCommand

        IFuture<java.lang.String> invokeCommand​(CliContext context,
                                                java.lang.String[] args)
        Invoke the command.
        Parameters:
        context - The context.
        args - The arguments.