Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GitClient

A git client.

Hierarchy

  • GitClient

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

cwd

cwd: string

Gets the current working directory.

executable

executable: GitExecutable

The data of the executable.

Methods

exec

  • Executes the Git client.

    Parameters

    • args: any[]

      Arguments for the execution.

    • Optional opts: ExecFileOptions

    Returns Promise<ExecFileResult>

    The promise with the result.

execSync

  • execSync(args: any[], opts?: ExecFileOptions): string
  • Executes the Git client (sync).

    Parameters

    • args: any[]

      Arguments for the execution.

    • Optional opts: ExecFileOptions

    Returns string

    The result.

Generated using TypeDoc