Class ShellCommand
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
public class ShellCommand
Properties
| Edit this page View SourceCommand
The command to run.
Declaration
[JsonProperty("command")]
public List<string> Command { get; set; }
Property Value
| Type | Description |
|---|---|
| List<string> |
Env
Environment variables to set for the command.
Declaration
[JsonProperty("env")]
public Dictionary<string, string> Env { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
TimeoutMs
Optional timeout in milliseconds for the command.
Declaration
[JsonProperty("timeout_ms")]
public int? TimeoutMs { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
Type
The type of the local shell action. Always exec.
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
User
Optional user to run the command as.
Declaration
[JsonProperty("user")]
public string User { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
WorkingDirectory
Optional working directory to run the command in.
Declaration
[JsonProperty("working_directory")]
public string WorkingDirectory { get; set; }
Property Value
| Type | Description |
|---|---|
| string |