Class LocalShellAction
public sealed class LocalShellAction
- Inheritance
-
LocalShellAction
- Inherited Members
Constructors
LocalShellAction()
public LocalShellAction()
LocalShellAction(IEnumerable<string>, IReadOnlyDictionary<string, string>, int?, string, string)
public LocalShellAction(IEnumerable<string> command, IReadOnlyDictionary<string, string> environment = null, int? timeoutMilliseconds = null, string user = null, string workingDirectory = null)
Parameters
command
IEnumerable<string>environment
IReadOnlyDictionary<string, string>timeoutMilliseconds
int?user
stringworkingDirectory
string
LocalShellAction(string, IReadOnlyDictionary<string, string>, int?, string, string)
public LocalShellAction(string command, IReadOnlyDictionary<string, string> environment = null, int? timeoutMilliseconds = null, string user = null, string workingDirectory = null)
Parameters
command
stringenvironment
IReadOnlyDictionary<string, string>timeoutMilliseconds
int?user
stringworkingDirectory
string
Properties
Command
The command to run.
[JsonInclude]
[JsonPropertyName("command")]
public IReadOnlyList<string> Command { get; }
Property Value
Environment
Environment variables to set for the command.
[JsonInclude]
[JsonPropertyName("env")]
public IReadOnlyDictionary<string, string> Environment { get; }
Property Value
TimeoutMilliseconds
Optional timeout in milliseconds for the command.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
[JsonPropertyName("timeout_ms")]
public int? TimeoutMilliseconds { get; }
Property Value
- int?
Type
[JsonInclude]
[JsonPropertyName("type")]
public string Type { get; }
Property Value
User
Optional user to run the command as.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("user")]
public string User { get; }
Property Value
WorkingDirectory
Optional working directory to run the command in.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
[JsonPropertyName("working_directory")]
public string WorkingDirectory { get; }