public class Connect extends ConsoleCommand
Constructor and Description |
---|
Connect(ConsoleIO consoleIO,
ConsoleState state,
Disconnect disconnect)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
connectDefault()
Connect to default repository
|
boolean |
connectLocal(String path)
Connect to local repository
|
boolean |
connectRemote(String url)
Connect to remote repository without username of password
|
void |
execute(String... tokens)
Execute the given parameters.
|
String |
getHelpLong()
Get long description
|
String |
getHelpShort()
Get short description, small enough to fit on one console row
|
String |
getName()
Get the name of the command
|
convertParams, getConsoleIO, getConsoleState
public Connect(ConsoleIO consoleIO, ConsoleState state, Disconnect disconnect)
consoleIO
- state
- disconnect
- public String getName()
Help
public String getHelpShort()
ConsoleCommand
getHelpShort
in interface Help
getHelpShort
in class ConsoleCommand
public String getHelpLong()
ConsoleCommand
getHelpLong
in interface Help
getHelpLong
in class ConsoleCommand
public void execute(String... tokens)
Command
execute
in interface Command
execute
in class ConsoleCommand
tokens
- parameters typed by userpublic boolean connectDefault()
public boolean connectLocal(String path)
path
- directory of the local repositorypublic boolean connectRemote(String url)
url
- URL of the repositoryCopyright © 2015-2019 Eclipse Foundation. All Rights Reserved.