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

The default implementation of the IToolWrapper interface. More...

Inheritance diagram for ToolWrapper:
Inheritance graph
[legend]
Collaboration diagram for ToolWrapper:
Collaboration graph
[legend]

Public Member Functions

 ToolWrapper (ToolSettings toolSettings, WrapperSettings wrapperSettings, IProcessRunner? processRunner=null, ILogger< ToolWrapper >? logger=null)
 Initializes a new instance of the ToolWrapper class. More...
 
async Task< ProcessResult > RunCommandAsync (string command, params object?[] args)
 Runs a command asynchronously.
 

Detailed Description

The default implementation of the IToolWrapper interface.

Constructor & Destructor Documentation

◆ ToolWrapper()

ToolWrapper.ToolWrapper ( ToolSettings  toolSettings,
WrapperSettings  wrapperSettings,
IProcessRunner processRunner = null,
ILogger< ToolWrapper >?  logger = null 
)

Initializes a new instance of the ToolWrapper class.

Parameters
toolSettingsThe settings for the command line tool.
wrapperSettingsThe settings for the command line tool wrapper.
processRunnerThe process runner to use. If null, a new ProcessRunner will be created.
loggerThe logger to use. If null, logging will be disabled.

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