CliRunner
このコンテンツはまだ日本語訳がありません。
Defined in: src/runner/cli-runner.ts:137
CLI Runner for executing Git commands
Handles:
- Command construction based on execution context
- Progress tracking from stderr (Git and LFS)
- Abort signal handling
- Error mapping
Constructors
Constructor
new CliRunner(
adapters,options?):CliRunner
Defined in: src/runner/cli-runner.ts:145
Parameters
adapters
options?
Returns
CliRunner
Methods
mapError()
mapError(
result,context,argv):GitError|null
Defined in: src/runner/cli-runner.ts:320
Map Git result to GitError if needed
Parameters
result
context
argv
string[]
Returns
GitError | null
run()
run(
context,args,opts?):Promise<RawResult>
Defined in: src/runner/cli-runner.ts:264
Run a Git command
Parameters
context
args
string[]
opts?
Returns
Promise<RawResult>
runOrThrow()
runOrThrow(
context,args,opts?):Promise<RawResult>
Defined in: src/runner/cli-runner.ts:397
Run a command and throw on error
Parameters
context
args
string[]
opts?
Returns
Promise<RawResult>
withOptions()
withOptions(
options):CliRunner
Defined in: src/runner/cli-runner.ts:159
Create a new CliRunner with additional options merged
Used to create a runner for a specific repository with custom environment
Parameters
options
Returns
CliRunner