Class Open

    • Constructor Detail

      • Open

        public Open​(ConsoleIO consoleIO,
                    ConsoleState state,
                    Close close)
        Constructor
        Parameters:
        consoleIO -
        state -
        close -
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: Help
        Get the name of the command
        Returns:
        string
      • execute

        public void execute​(String... tokens)
        Description copied from interface: Command
        Execute the given parameters.
        Specified by:
        execute in interface Command
        Overrides:
        execute in class ConsoleCommand
        Parameters:
        tokens - parameters typed by user
      • openRepository

        public void openRepository​(String repoID)
        Open a repository
        Parameters:
        repoID - repository ID