Skip to content

Homebrew Tap for easy install #92

@tjsousa

Description

@tjsousa

Hi there.

I've been using this tool and it makes the abstractions really easy to work with, specially when adopting parallel development with code agents, but I find it quite hard to motivate people to trust it by having a clunky install process.

Have you thought about providing a homebrew tap that could be used, such as:

brew tap coderabbitai/tap
brew install coderabbitai/tap/git-gtr

Or even submit it to Homebrew since the install.sh preferred location is already under Homebrew's bin directory.

Here's a Formula that I've used with a local tap to install:

class GitGtr < Formula
  desc "Git worktree manager with editor and AI tool integration"
  homepage "https://github.com/coderabbitai/git-worktree-runner"
  url "https://github.com/coderabbitai/git-worktree-runner/archive/refs/tags/v2.1.0.tar.gz"
  sha256 "7e946e1bccccadcaffd3781da87fa30451165b4016a8d644127c06f612ce7847"
  license "Apache-2.0"

  def install
    # Install main scripts
    bin.install "bin/git-gtr"
    bin.install "bin/gtr"

    # Install library and adapter files
    prefix.install "lib"
    prefix.install "adapters"
    prefix.install "completions"

    # Install setup script
    (prefix/"install.sh").write <<~EOS
      #!/bin/bash
      echo "git-gtr installed successfully"
      echo "Run 'git gtr doctor' to verify installation"
    EOS

    chmod 0755, prefix/"install.sh"
  end

  def post_install
    system "#{prefix}/install.sh"
  end

  test do
    system "#{bin}/git-gtr", "version"
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions