Summary
ICommandLineConventionContext
Implements the
IConventionContext
- Assembly
- Rocket
.Surgery .Extensions .CommandLine .Abstractions .dll - Namespace
- Rocket
.Surgery .Extensions .CommandLine - Interfaces
- Implementing Types
graph BT
Type-.->Interface0["IConventionContext"]
click Interface0 "/api/Rocket.Surgery.Conventions/IConventionContext"
Type["ICommandLineConventionContext"]
class Type type-node
Implementing0["CommandLineBuilder"]-.->Type
click Implementing0 "/api/Rocket.Surgery.Extensions.CommandLine/CommandLineBuilder"
Syntax
public interface ICommandLineConventionContext : IConventionContext
Attributes
| Type | Description |
|---|---|
| Nullable |
Properties
| Name | Value | Summary |
|---|---|---|
| Assembly |
I |
Gets the assembly candidate finder.
|
| AssemblyProvider | IAssemblyProvider |
Gets the assembly provider.
|
| Command |
IConventionBuilder |
Gets the command line application conventions.
|
Methods
| Name | Value | Summary |
|---|---|---|
| AddCommand |
Command |
Adds the command.
|
| AddCommand |
Command |
Adds the command.
|
| AddCommand |
Command |
Adds the command.
|
| OnParse |
I |
Called when [parse].
|
| OnRun |
I |
Called when [run].
|
| OnRun |
I |
Called when [run].
|
| OnRun |
I |
Called when [run].
|
| OnRun |
I |
Called when [run].
|
| OnRunAsync |
I |
Called when [run].
|
Extension Methods
| Name | Value | Summary |
|---|---|---|
| Get |
T |
Get a value by key from the context
|
| Get |
T |
Get a value by type from the context
|
| GetOrAdd |
T |
Get a value by key from the context
|
| GetOrAdd |
T |
Get a value by key from the context
|
| IsUnitTestHost |
bool |
Check if this is a test host (to allow conventions to behave differently during unit tests)
|
| Set |
void |
Get a value by type from the context
|
| Set |
void |
Get a value by type from the context
|
| SetBackingValue |
T |
Sets the backing value.
From ValueExtensions
|
| With |
TBuilder |
Adds the specified dictionary to the provided dictionary.
|
