Class Connect

    • Constructor Detail

    • 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
      • connectDefault

        public boolean connectDefault()
        Connect to default repository
        Returns:
        true if connected
      • connectLocal

        public boolean connectLocal​(String path)
        Connect to local repository
        Parameters:
        path - directory of the local repository
        Returns:
        true on success
      • connectRemote

        public boolean connectRemote​(String url)
        Connect to remote repository without username of password
        Parameters:
        url - URL of the repository
        Returns:
        true on success