Provides helper methods to prompt users for values based on PromptAction metadata. Renders questions with units, types, and optional flags, and handles defaults and selections.
More...
|
| object? | PromptAction (PromptAction action) |
| | Prompts the user to answer a PromptAction using Spectre.Console components. Supports enum, class, collection selections, booleans, and primitive inputs.
|
Provides helper methods to prompt users for values based on PromptAction metadata. Renders questions with units, types, and optional flags, and handles defaults and selections.
◆ PromptAction()
| object? VectoInputManager.Commands.PromptActionHelper.PromptAction |
( |
PromptAction | action | ) |
|
|
inline |
Prompts the user to answer a PromptAction using Spectre.Console components. Supports enum, class, collection selections, booleans, and primitive inputs.
- Parameters
-
| action | The prompt action to render. |
- Returns
- The user's answer converted to the appropriate type (or null if optional and not set).
The documentation for this class was generated from the following file:
- VectoInputManager/Internals/PromptActionHelper.cs