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:3895


encoding?

optional encoding: BufferEncoding

The encoding to use. Default utf8

Source

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


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:3880


isAdmin?

optional isAdmin: boolean

admin privileges required

Source

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


logger?

optional logger: Logger

A logger used to track execution events.

Source

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


token?

optional token: CancellationToken

A cancellation token used to request cancellation.

Source

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