ICommand Interface

Represents a command.
public interface ICommand

Methods

abstract Task<int> Execute(CommandContext, CommandSettings)
Executes the command.
abstract ValidationResult Validate(CommandContext, CommandSettings)
Validates the specified settings and remaining arguments.

Extension Methods

T And<ICommand>(Action<ICommand>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.