ExQuality.Init.Prompter (ExQuality v0.5.0)

View Source

Handles user interaction for tool selection.

Provides an interactive prompt showing available tools with descriptions, marks already installed and recommended tools, and allows users to select which tools to install.

Summary

Functions

Prompts user to select which tools to install.

Functions

prompt_for_tools(existing, recommended)

@spec prompt_for_tools(%{required(atom()) => boolean()}, [atom()]) :: [atom()]

Prompts user to select which tools to install.

Pre-selects recommended tools, allows user to customize selections via comma-separated input. Pressing Enter accepts the defaults.

Parameters

  • existing - Map of tool availability from ExQuality.Tools.detect/0
  • recommended - List of tools to pre-select

Returns

List of tools the user wants to install (excluding already installed tools)