GetExamples(ICommandModel, ICommandInfo) Method
Gets the examples section of the help information.
public virtual IEnumerable<IRenderable> GetExamples(ICommandModel model, ICommandInfo command)
- Namespace
- Spectre
.Console .Cli .Help - Containing Type
- HelpProvider
Remarks
Examples from the command's direct children are used
if no examples have been set on the specified command or model.
Parameters
- ICommandModel model
- The command model to write help for.
- ICommandInfo command
- The command for which to write help information (optional).
Returns
-
IEnumerable
<IRenderable>