cli-framework/src/lib/promptsmith
2025-05-17 01:24:03 -05:00
..
README.md Formatting pass 2025-05-17 01:24:03 -05:00
select-options.ts Formatting pass 2025-05-17 01:24:03 -05:00

Features to Impliment

Basic Inputs

  • Text Input User types a free-form response.
  • Password Input Masked input for sensitive information.
  • Multi-line Input Allows extended text responses.
  • Autocomplete Suggests completions based on partial input.

Selection & Choice

  • Single Choice (Radio List) User selects one option from a list.
  • Multiple Choice (Checkbox List) User selects multiple options.
  • Hierarchical Menus Options lead to submenus for deeper selection.
  • Searchable Select Allows filtering of choices dynamically.

Confirmation & Boolean Responses

  • Yes/No Confirmation Quick validation prompt.
  • Custom Boolean Toggle Enables/disables a setting interactively.

Numeric & Range Inputs

  • Direct Number Input Accepts numeric values.
  • Slider/Range Selector Interactive range selection (e.g., choose a value between 110).
  • Incremental Stepper Adjusts numeric values up/down.

Progress & Status Indicators

  • Loading Indicators Displays progress for background tasks.
  • Spinners & Animations Adds visual feedback while waiting.
  • Progress Bars Tracks completion percentage.

Navigation & Actions

  • Interactive Tables Allows selection from tabular data.
  • File Picker User selects files interactively.
  • Date/Time Picker User selects a timestamp interactively.
  • Shortcut Actions Fast execution based on predefined keys.
  • Undo/Redo Prompts Allows correction of previous inputs.

Advanced & Custom Interactions

  • Drag-and-Drop Items (in CLI format) Reorder items interactively.
  • Text-Based Dialogs Simulates step-by-step conversational input.
  • Inline Editing Lets users modify text inline.
  • Command Suggestions Auto-suggests commands based on context.