public class RemoteAddCommand extends GitCommand<RemoteConfig>
call()
method to finally execute the command.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name |
private URIish |
uri |
repo
Modifier | Constructor and Description |
---|---|
protected |
RemoteAddCommand(Repository repo)
Constructor for RemoteAddCommand.
|
Modifier and Type | Method and Description |
---|---|
RemoteConfig |
call() |
RemoteAddCommand |
setName(java.lang.String name)
The name of the remote to add.
|
RemoteAddCommand |
setUri(URIish uri)
The URL of the repository for the new remote.
|
checkCallable, getRepository, setCallable
private java.lang.String name
private URIish uri
protected RemoteAddCommand(Repository repo)
repo
- the Repository
public RemoteAddCommand setName(java.lang.String name)
name
- a remote namepublic RemoteAddCommand setUri(URIish uri)
uri
- an URL for the remotepublic RemoteConfig call() throws GitAPIException
Execute the command
Executes the remote add
command with all the options and
parameters collected by the setter methods of this class.
call
in interface java.util.concurrent.Callable<RemoteConfig>
call
in class GitCommand<RemoteConfig>
GitAPIException