Class CommandNameFromTypeConvention
Sets the command name based on the model type, if is not otherwise set.
This attempts to infer a command name using a few rules, such as using kebab-case
and trimming "Command" from the name of the type.
Inheritance
System.Object
CommandNameFromTypeConvention
Implements
Namespace: McMaster.Extensions.CommandLineUtils.Conventions
Assembly: McMaster.Extensions.CommandLineUtils.dll
Syntax
public class CommandNameFromTypeConvention : IConvention
Methods
| Improve this Doc View SourceApply(ConventionContext)
Apply the convention.
Declaration
public void Apply(ConventionContext context)
Parameters
Type | Name | Description |
---|---|---|
ConventionContext | context | The context in which the convention is applied. |