Interface ApiOptions

ApiOptions directs the behavior of easy-git-annex.

Hierarchy

  • ApiOptions

Properties

env?: Record<string, unknown>

The environment to use when running the command. If unspecified, the environment of the current process is used.

If the desired environment will be a modification of the current environment, consider cloning process.env to avoid polluting the current environment.

The Node.js process.env documentation describes the environment object.

errHandler?: ConsoleDataHandler

The callback to receive stderr data as it becomes available. If unspecified, no stderr callback is invoked. Refer to ConsoleDataHandler for implementation details.

noOp?: boolean

Stops processing before actually running the command. The CommandResult is returned with an exitCode of Number.NaN. The repositoryPath, exeName, and args properties may be examined.

outHandler?: ConsoleDataHandler

The callback to receive stdout data as it becomes available. If unspecified, no stdout callback is invoked. Refer to ConsoleDataHandler for implementation details.