CommandLineBuilder Class

Summary

Logging Builder Implements the ICommandLineBuilder Implements the ICommandLineConventionContext
graph BT Type-->Base0["ConventionBuilder<ICommandLineBuilder, ICommandLineConvention, CommandLineConventionDelegate>"] Base0-->Base1["ConventionContainerBuilder<ICommandLineBuilder, ICommandLineConvention, CommandLineConventionDelegate>"] Base1-->Base2["Object"] Type-.->Interface0["ICommandLineBuilder"] click Interface0 "/api/Rocket.Surgery.Extensions.CommandLine/ICommandLineBuilder" Type-.->Interface1["IConventionBuilder<ICommandLineBuilder, ICommandLineConvention, CommandLineConventionDelegate>"] Type-.->Interface2["IConventionContainer<ICommandLineBuilder, ICommandLineConvention, CommandLineConventionDelegate>"] Type-.->Interface3["ICommandLineConventionContext"] click Interface3 "/api/Rocket.Surgery.Extensions.CommandLine/ICommandLineConventionContext" Type-.->Interface4["IConventionContext"] click Interface4 "/api/Rocket.Surgery.Conventions/IConventionContext" Type["CommandLineBuilder"] class Type type-node

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