Package org.appng.cli

Class CliCore

    • Constructor Detail

      • CliCore

        public CliCore()
    • Method Detail

      • setContext

        public void setContext​(org.springframework.context.ApplicationContext platformContext)
      • processCommand

        public boolean processCommand​(String[] args)
                               throws com.beust.jcommander.ParameterException
        Parses the given command line arguments and sets the state for this CliCore. Must be called before perform(Properties). Only if this method returns true, it is reasonable to call perform(Properties).
        Parameters:
        args - the command line arguments
        Returns:
        true if the given arguments have been parsed to an ExecutableCliCommand and perform(Properties) should be called, false otherwise
        Throws:
        com.beust.jcommander.ParameterException
        See Also:
        getStatus()
      • getStatus

        public int getStatus()