Interface TerminalShellExecutionCommandLine

A command line that was executed in a terminal.

Stubbed

interface TerminalShellExecutionCommandLine {
    confidence: TerminalShellExecutionCommandLineConfidence;
    isTrusted: boolean;
    value: string;
}

Properties

The confidence of the command line value which is determined by how the value was obtained. This depends upon the implementation of the shell integration script.

Stubbed

isTrusted: boolean

Whether the command line value came from a trusted source and is therefore safe to execute without user additional confirmation, such as a notification that asks "Do you want to execute (command)?". This verification is likely only needed if you are going to execute the command again.

This is true only when the command line was reported explicitly by the shell integration script (ie. high confidence) and it used a nonce for verification.

Stubbed

value: string

The full command line that was executed, including both the command and its arguments.

Stubbed