-
Notifications
You must be signed in to change notification settings - Fork 21
/
ExecuteArgs.cs
32 lines (30 loc) · 990 Bytes
/
ExecuteArgs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/// <summary>
/// Arguments used to execute a process
/// </summary>
public class ExecuteArgs
{
/// <summary>
/// Gets or sets the command to execute
/// </summary>
public string Command { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the arguments of the command
/// </summary>
public string Arguments { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the arguments of the command as a list and will be correctly escaped
/// </summary>
public string[] ArgumentList { get; set; } = new string[] { };
/// <summary>
/// Gets or sets the timeout in seconds of the process
/// </summary>
public int Timeout { get; set; }
/// <summary>
/// When silent, nothing will be logged
/// </summary>
public bool Silent { get; set; }
/// <summary>
/// Gets or sets the working directory of the process
/// </summary>
public string WorkingDirectory { get; set; } = string.Empty;
}