-
Home
-
API
-
XenoAtom.CommandLine.Terminal
-
CommandTerminalExtensions
-
Methods
-
Add(TCommand, TVisual, String)
Add<TCommand, TVisual>(TCommand, TVisual, String) Method
Definition
Adds a Terminal.UI visual node with fallback text to a command container.
public static TCommand Add<TCommand, TVisual>(this TCommand command, TVisual visual, string fallbackText)
where TCommand : CommandContainer where TVisual : Visual
Type parameters
- TCommand
- Type of the command container.
- TVisual
- Type of the visual node.
Parameters
- command
- {TCommand}
The command container to append to.
- visual
- {TVisual}
The visual to append.
- fallbackText
- String
Fallback text for outputs that don't render visuals.
Returns
- {TCommand}
- The command container.