Table of Contents

ICliRunAsyncWithContext Interface

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

An interface to add an async command handler with Task RunAsync(CliContext) signature to a command class. Normally you don't need an interface for a handler method as the source generator can detect it automatically, but the interface can be used to prevent your IDE complain about unused method in class.

public interface ICliRunAsyncWithContext

Methods

RunAsync(CliContext)

The async command handler that will be called when your command is invoked. Handler receives a CliContext instance.