| 1 | |
package com.aragost.javahg.internals; |
| 2 | |
|
| 3 | |
import com.aragost.javahg.Repository; |
| 4 | |
|
| 5 | |
public class GenericCommand extends AbstractCommand { |
| 6 | |
|
| 7 | |
private String commandName; |
| 8 | |
|
| 9 | |
public GenericCommand(Repository repository, String commandName) { |
| 10 | 41 | super(repository, commandName); |
| 11 | 41 | this.commandName = commandName; |
| 12 | 41 | } |
| 13 | |
|
| 14 | |
@Override |
| 15 | |
public String getCommandName() { |
| 16 | 24 | return this.commandName; |
| 17 | |
} |
| 18 | |
|
| 19 | |
public String execute(String... args) { |
| 20 | 37 | return launchString(args); |
| 21 | |
} |
| 22 | |
} |