Package io.github.qishr.cascara.common.util
Interface IParameterRenderer
java.lang.Object
io.github.qishr.cascara.common.util.CommandLine.Help.IParameterRenderer
Enclosing Class:
io.github.qishr.cascara.common.util.CommandLine.Help
public static interface IParameterRenderer
When customizing online help for PositionalParamSpec details, a custom IParameterRenderer
can be used to create textual representation of a Parameters field in a tabular format: one or more rows,
each containing one or more columns.The Layout is responsible for placing these text
values in the TextTable.
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public abstract Text[][] | render(PositionalParamSpec param, IParamLabelRenderer parameterLabelRenderer, ColorScheme scheme) | Returns a text representation of the specified positional parameter. |
Method Details
render
public abstract Text[][] render(PositionalParamSpec param, IParamLabelRenderer parameterLabelRenderer, ColorScheme scheme)
Returns a text representation of the specified positional parameter.
Parameters:
param - the positional parameter to show online usage help for
parameterLabelRenderer - responsible for rendering parameter labels to text
scheme - color scheme for applying ansi color styles to positional parameters
Returns:
a 2-dimensional array of text values: one or more rows, each containing one or more columns
Since:
3.0