jjm.one.CommandLineToolWrapper  2.0.0-alpha.0
A C# library that provides a wrapper for command line tools.
Properties | List of all members
ToolSettings Class Reference

Represents the settings for a command line tool. More...

Properties

string ToolPath = string.Empty [get]
 Gets or sets the path to the tool. More...
 
Dictionary< string, string > CommandTemplates [get]
 Gets or sets the command templates for the tool. More...
 
List< int > RetryExitCodes = [1] [get]
 Gets or sets the exit codes that trigger a retry. More...
 
List< string > RetryOutputContains = ["network error", "timeout"] [get]
 Gets or sets the output strings that trigger a retry. More...
 
List< string > RetryErrorContains = ["network error", "timeout"] [get]
 Gets or sets the error strings that trigger a retry. More...
 

Detailed Description

Represents the settings for a command line tool.

Property Documentation

◆ CommandTemplates

Dictionary<string, string> ToolSettings.CommandTemplates
get
Initial value:
= new()
{
["help"] = "--help",
["version"] = "--version"
}

Gets or sets the command templates for the tool.

◆ RetryErrorContains

List<string> ToolSettings.RetryErrorContains = ["network error", "timeout"]
get

Gets or sets the error strings that trigger a retry.

◆ RetryExitCodes

List<int> ToolSettings.RetryExitCodes = [1]
get

Gets or sets the exit codes that trigger a retry.

◆ RetryOutputContains

List<string> ToolSettings.RetryOutputContains = ["network error", "timeout"]
get

Gets or sets the output strings that trigger a retry.

◆ ToolPath

string ToolSettings.ToolPath = string.Empty
get

Gets or sets the path to the tool.


The documentation for this class was generated from the following file: