Table of Contents

Method RunAsync

Namespace
Ploch.CommandLine.Spectre
Assembly
Ploch.CommandLine.Spectre.dll

RunAsync(params IEnumerable<string>)

Executes the command-line application asynchronously with the specified arguments.

Task<int> RunAsync(params IEnumerable<string> args)

Parameters

args IEnumerable<string>

Collections of command-line arguments to pass to the application.

Returns

Task<int>

A task representing the asynchronous operation, with an integer result representing the exit code of the application, where 0 typically indicates success.

Exceptions

InvalidOperationException

Thrown synchronously, before any task is returned, when this executor has already been used.