Class RunArgs
Arguments for configuring the command-line application run behavior including debug mode, actions, and service setup
public class RunArgs
- Inheritance
-
RunArgs
- Inherited Members
- Extension Methods
Properties
AddGroupOfActions
Gets or sets the function that provides groups of actions for user selection
public Func<Dictionary<string, Func<Task<Dictionary<string, object>>>>>? AddGroupOfActions { get; set; }
Property Value
- Func<Dictionary<string, Func<Task<Dictionary<string, object>>>>>
Args
Gets or sets the command-line arguments passed to the application
public string[] Args { get; set; }
Property Value
- string[]
ConsoleLogFilePath
Gets or sets the file path for mirroring all console output. When set, everything written to Console.Out and Console.Error (including Microsoft.Extensions.Logging console provider) is also written to this file. The file is overwritten on each new application run. This allows AI tools to read the file and understand what happened during the last run.
public string? ConsoleLogFilePath { get; set; }
Property Value
IsDebug
Gets or sets whether the application is running in debug mode
public bool IsDebug { get; set; }
Property Value
IsVerboseConsoleLogging
Gets or sets whether to enable verbose console logging. Default is true. When enabled, the application logs all important steps to the console so that AI tools can understand what is happening in the application.
public bool IsVerboseConsoleLogging { get; set; }
Property Value
RunInDebugAsync
Gets or sets the async function to run when in debug mode
public Func<Task>? RunInDebugAsync { get; set; }
Property Value
ServiceCollection
Gets or sets the service collection for dependency injection configuration
public IServiceCollection? ServiceCollection { get; set; }
Property Value
ShouldAskUserIfRelease
Gets or sets whether to ask the user to select an action in release mode
public bool? ShouldAskUserIfRelease { get; set; }
Property Value
- bool?
ShouldCatchUnhandledException
Gets or sets whether to catch and handle unhandled exceptions
public bool ShouldCatchUnhandledException { get; set; }
Property Value
ShouldLoadFromClipboard
Gets or sets whether to load input data from clipboard
public bool ShouldLoadFromClipboard { get; set; }