Table of Contents

Class RunArgs

Namespace
SunamoCl.SunamoCmd.Args
Assembly
SunamoCl.dll

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

string

IsDebug

Gets or sets whether the application is running in debug mode

public bool IsDebug { get; set; }

Property Value

bool

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

bool

RunInDebugAsync

Gets or sets the async function to run when in debug mode

public Func<Task>? RunInDebugAsync { get; set; }

Property Value

Func<Task>

ServiceCollection

Gets or sets the service collection for dependency injection configuration

public IServiceCollection? ServiceCollection { get; set; }

Property Value

IServiceCollection

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

bool

ShouldLoadFromClipboard

Gets or sets whether to load input data from clipboard

public bool ShouldLoadFromClipboard { get; set; }

Property Value

bool