コンテンツにスキップ

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

RuntimeAdapters

options?

CliRunnerOptions

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

RawResult

context

ExecutionContext

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

ExecutionContext

args

string[]

opts?

ExecOpts

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

ExecutionContext

args

string[]

opts?

ExecOpts

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

CliRunnerOptions

Returns

CliRunner