RunAsync(IEnumerable, CommandRunConfig?) Method

Definition

Assembly XenoAtom.CommandLine.dll

Runs this command with the specified arguments and optional run configuration.

public virtual ValueTask<int> RunAsync(IEnumerable<string> arguments, CommandRunConfig? runConfig = null)

Parameters

arguments
IEnumerable<String>

The arguments for this command.

runConfig
CommandRunConfig

The optional run configuration (for stdout, stderr...)

Returns

ValueTask<Int32>
The result code of running this command.