CommandLineBuilder Class

Summary

Logging Builder Implements the ICommandLineBuilder Implements the ICommandLineConventionContext
CommandLineBuilder
ConventionBuilder
ConventionContainerBuilder
Object
IConventionBuilder
IConventionContainer

Syntax

public class CommandLineBuilder : 
    ConventionBuilder<ICommandLineBuilder, ICommandLineConvention, CommandLineConventionDelegate>, 
    ICommandLineBuilder, 
    IConventionBuilder<ICommandLineBuilder, ICommandLineConvention, CommandLineConventionDelegate>, 
    
    IConventionContainer<ICommandLineBuilder, ICommandLineConvention, CommandLineConventionDelegate>, 
    ICommandLineConventionContext, IConventionContext

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Properties

Name Value Summary
CommandLineApplicationConventions IConventionBuilder
Gets the command line application conventions.
Logger ILogger
A logger that is configured to work with each convention item

Methods

Name Value Summary
AddCommand(string, Action<CommandLineApplication>, bool) CommandLineApplication
Adds the command.
AddCommand<T>(Action<CommandLineApplication<T>>, bool) CommandLineApplication<T>
Adds the command.
AddCommand<T>(string, Action<CommandLineApplication<T>>, bool) CommandLineApplication<T>
Adds the command.
Build(Assembly) ICommandLine
Builds the specified entry assembly.
OnParse(OnParseDelegate) ICommandLineBuilder
Called when [parse].
OnRun(OnRunAsyncCancellableDelegate) ICommandLineBuilder
Called when [run].
OnRun(OnRunAsyncDelegate) ICommandLineBuilder
Called when [run].
OnRun(OnRunDelegate) ICommandLineBuilder
Called when [run].
OnRun<T>() ICommandLineBuilder
Called when [run].
OnRunAsync<T>() ICommandLineBuilder
Called when [run].

Extension Methods

See Also