Class BaseOptions
The invocation configuration shared by every command: where to run the CLI, what environment to run it with, and where to send its output. Every generated options class derives from this so a single argument carries both the command's flags and its invocation configuration.
Inheritance
BaseOptions
Inherited Members
Namespace: Pulumi.Automation.Commands
Assembly: Pulumi.Automation.dll
Syntax
public abstract class BaseOptions
Properties
View SourceEnvironmentVariables
Environment variables to set for the CLI process, merged over the inherited environment.
Declaration
public IDictionary<string, string?>? EnvironmentVariables { get; set; }
Property Value
| Type | Description |
|---|---|
| IDictionary<string, string> |
OnStandardError
A callback invoked with each line the CLI writes to standard error.
Declaration
public Action<string>? OnStandardError { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<string> |
OnStandardOutput
A callback invoked with each line the CLI writes to standard output.
Declaration
public Action<string>? OnStandardOutput { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<string> |
WorkDir
The working directory in which to run the CLI. Defaults to the current process directory when null.
Declaration
public string? WorkDir { get; set; }
Property Value
| Type | Description |
|---|---|
| string |