Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 1, 2025

This PR adds a new action to the PV CLI that allows users to install Homebrew package manager through the interactive TUI interface.

Changes

  • New action package: internal/actions/homebrew/homebrew.go

    • Implements automatic action registration following PV CLI conventions
    • Executes the official Homebrew installation script from https://docs.brew.sh/Installation
    • Provides interactive installation with full user interaction support
  • Updated: main.go

    • Added import to register the Homebrew action

Features

The action includes several smart features:

  • Duplicate Prevention: Checks if Homebrew is already installed before attempting installation
  • OS Validation: Returns a clear error message on Windows (Homebrew is not supported)
  • Official Installation: Uses the exact command documented by Homebrew:
    curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | /bin/bash
  • Interactive Experience: Connects stdin/stdout/stderr to allow users to interact with the Homebrew installer prompts
  • Structured Logging: Uses charmbracelet/log for consistent progress updates

Usage

Users can now select "Install Homebrew" from the PV CLI menu and follow the interactive prompts to install Homebrew on their macOS or Linux system.

Closes #[issue_number]

Original prompt

Please create an action to install homebrew. Plz consult https://docs.brew.sh/Installation for docs


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits October 1, 2025 18:54
Co-authored-by: munezaclovis <51137458+munezaclovis@users.noreply.github.com>
Co-authored-by: munezaclovis <51137458+munezaclovis@users.noreply.github.com>
Copilot AI changed the title [WIP] Please create an action to install homebrew. Plz consult https://docs.brew.sh/Installation for docs Add Homebrew installation action to PV CLI Oct 1, 2025
Copilot AI requested a review from munezaclovis October 1, 2025 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants