Skip to main content

Interface: RunOptions

Options for running a command.

Properties

cwd?

optional cwd: string

custom directory

Defined in

packages/extension-api/src/extension-api.d.ts:4301


encoding?

optional encoding: BufferEncoding

The encoding to use. Default utf8

Defined in

packages/extension-api/src/extension-api.d.ts:4311


env?

optional env: object

Environment variables to set for the command.

Index Signature

[key: string]: string

Defined in

packages/extension-api/src/extension-api.d.ts:4286


isAdmin?

optional isAdmin: boolean

admin privileges required

Defined in

packages/extension-api/src/extension-api.d.ts:4306


logger?

optional logger: Logger

A logger used to track execution events.

Defined in

packages/extension-api/src/extension-api.d.ts:4296


token?

optional token: CancellationToken

A cancellation token used to request cancellation.

Defined in

packages/extension-api/src/extension-api.d.ts:4291