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

      List<String> getArgs()
      Gets the list of arguments for the Git command.
      Returns:
      a List of arguments as Strings.
    • getOpts

      List<String> 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

      List<String> getExecArgs()
      Gets the list of arguments for the executable.
      Returns:
      a List of arguments as Strings.