Class SubCommandBase
Inheritance
SubCommandBase
Assembly: AnalysisPrograms.dll
Syntax
public abstract class SubCommandBase
Properties
|
Improve this Doc
View Source
Parent
Gets or sets the Parent command.
This is set by CommandLineUtils automatically.
Declaration
public MainArgs Parent { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Execute(CommandLineApplication)
Declaration
public abstract Task<int> Execute(CommandLineApplication app)
Parameters
Type |
Name |
Description |
McMaster.Extensions.CommandLineUtils.CommandLineApplication |
app |
|
Returns
|
Improve this Doc
View Source
Ok()
Declaration
Returns
|
Improve this Doc
View Source
OnExecuteAsync(CommandLineApplication)
This method is called when we run the command.
This method is automatically invoked by CommandLineUtils through reflection.
Declaration
public Task<int> OnExecuteAsync(CommandLineApplication app)
Parameters
Type |
Name |
Description |
McMaster.Extensions.CommandLineUtils.CommandLineApplication |
app |
|
Returns
|
Improve this Doc
View Source
OnValidate(ValidationContext, CommandLineContext)
This method is invoked when the Model is validated as a whole. It allows for complex
validation scenarios.
This method is automatically invoked by CommandLineUtils through reflection.
Declaration
protected virtual ValidationResult OnValidate(ValidationContext context, CommandLineContext appContext)
Parameters
Type |
Name |
Description |
ValidationContext |
context |
The current validation context.
|
McMaster.Extensions.CommandLineUtils.Abstractions.CommandLineContext |
appContext |
The current command line application.
|
Returns
Extension Methods