VECTO Input Manager
Loading...
Searching...
No Matches
VectoInputManager.Commands.PromptActionHelper(IAnsiConsole console) Class Reference

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...

Public Member Functions

object? PromptAction (PromptAction action)
 Prompts the user to answer a PromptAction using Spectre.Console components. Supports enum, class, collection selections, booleans, and primitive inputs.

Detailed Description

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.

Member Function Documentation

◆ 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
actionThe 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