Class CommandNameFromTypeConvention
- Namespace
- McMaster.Extensions.CommandLineUtils.Conventions
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
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.
public class CommandNameFromTypeConvention : IConvention
- Inheritance
-
objectCommandNameFromTypeConvention
- Implements
Methods
Apply(ConventionContext)
Apply the convention.
public void Apply(ConventionContext context)
Parameters
contextConventionContextThe context in which the convention is applied.