Interface IContext
public interface IContext
The context provided in the execute method of the GitExecutor class.
This interface defines the methods to access various properties required for executing Git commands.
- Since:
- 2020-05-05
-
Method Summary
Modifier and TypeMethodDescriptiongetArgs()Gets the list of arguments for the Git command.Gets the Git command to be executed.Gets the directory where the Git command should be executed.Gets the list of arguments for the executable.Gets the executable to be used.Gets the path to the Git executable.getOpts()Gets the list of options for the Git command.Gets the path to the script to be executed.
-
Method Details
-
getCommand
String getCommand()Gets the Git command to be executed.- Returns:
- the Git command as a String.
-
getGitExe
String getGitExe()Gets the path to the Git executable.- Returns:
- the path to the Git executable as a String.
-
getArgs
Gets the list of arguments for the Git command.- Returns:
- a List of arguments as Strings.
-
getOpts
Gets the list of options for the Git command.- Returns:
- a List of options as Strings.
-
getScript
Path getScript()Gets the path to the script to be executed.- Returns:
- the path to the script as a Path object.
-
getDirectory
Path getDirectory()Gets the directory where the Git command should be executed.- Returns:
- the directory as a Path object.
-
getExecutable
String getExecutable()Gets the executable to be used.- Returns:
- the executable as a String.
-
getExecArgs
Gets the list of arguments for the executable.- Returns:
- a List of arguments as Strings.
-