Class GitCommandRunner
java.lang.Object
io.github.joke.conventionalversion.git.GitCommandRunner
Runs
git in a directory and returns its standard output.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe full argument vector, git first.Runs a command, failing when git exits non-zero.protected ProcessSpawns the command in the working directory.Runs a command, yielding empty when git exits non-zero rather than failing.
-
Constructor Details
-
GitCommandRunner
-
-
Method Details
-
run
Runs a command, failing when git exits non-zero.- Throws:
ConventionalVersionException- when git is missing or the command fails
-
tryRun
-
command
The full argument vector, git first. Separate fromstart(List)so it can be read back. -
start
-