Table of Contents

API reference

Generated from the XML documentation of the four packages. Every public type and member is listed; this page says which namespace to open for what.

Ploch.CommandLine.Spectre

The core package, in five namespaces:

Ploch.CommandLine.Spectre.Serilog

Ploch.CommandLine.Spectre.Serilog — opt-in Serilog logging: UseSerilog on the builder, AddSerilog on a service collection, the SerilogConfigurationBundle behind both, and ConfigureSerilog for a LoggerConfiguration of your own.

Ploch.CommandLine.Spectre.FluentValidation

Ploch.CommandLine.Spectre.FluentValidation — AddCommandLineSettingsFluentValidation, which registers FluentCommandSettingsValidator<TSettings> as the validator the command base classes call, and the services bundle it is built on.

Ploch.CommandLine.UseCases

Ploch.CommandLine.UseCases — IUseCase<TRequest, TResponse>, IResultUseCase<TRequest, TResponse> and UseCaseAsyncCommand<...>, the command base class that runs a result use case and maps its Ardalis.Result to output and an exit code.