Skip to main content

Interface: RunOptions

Options for running a command.

Properties

cwd?

optional cwd: string

custom directory

Source

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


encoding?

optional encoding: BufferEncoding

The encoding to use. Default utf8

Source

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


env?

optional env: Object

Environment variables to set for the command.

Index signature

[key: string]: string

Source

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


isAdmin?

optional isAdmin: boolean

admin privileges required

Source

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


logger?

optional logger: Logger

A logger used to track execution events.

Source

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


token?

optional token: CancellationToken

A cancellation token used to request cancellation.

Source

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