Skip to main content

Interface: RunOptions

Defined in: packages/extension-api/src/extension-api.d.ts:4284

Options for running a command.

Properties

cwd?

optional cwd: string

Defined in: packages/extension-api/src/extension-api.d.ts:4303

custom directory


encoding?

optional encoding: BufferEncoding

Defined in: packages/extension-api/src/extension-api.d.ts:4313

The encoding to use. Default utf8


env?

optional env: object

Defined in: packages/extension-api/src/extension-api.d.ts:4288

Environment variables to set for the command.

Index Signature

[key: string]: string


isAdmin?

optional isAdmin: boolean

Defined in: packages/extension-api/src/extension-api.d.ts:4308

admin privileges required


logger?

optional logger: Logger

Defined in: packages/extension-api/src/extension-api.d.ts:4298

A logger used to track execution events.


token?

optional token: CancellationToken

Defined in: packages/extension-api/src/extension-api.d.ts:4293

A cancellation token used to request cancellation.