← back to genexk__homebrew-tools

Function bodies 2 total

All specs Real LLM only Function bodies
Trimmer class · ruby · L1-L20 (20 LOC)
Formula/trimmer.rb
class Trimmer < Formula
  desc "Fast video trimmer using ffmpeg stream copy (O(1) speed)"
  homepage "https://github.com/genexk/TheTrimmer"
  url "https://github.com/genexk/TheTrimmer.git", branch: "cli-tool"
  version "0.1.0"
  license "MIT"

  depends_on xcode: ["15.0", :build]
  depends_on "ffmpeg"
  depends_on :macos

  def install
    system "swift", "build", "-c", "release", "--product", "trimmer-cli",
           "--disable-sandbox"
    bin.install ".build/release/trimmer-cli" => "trimmer"
  end

  test do
    assert_match "USAGE: trimmer", shell_output("#{bin}/trimmer --help")
  end
install method · ruby · L12-L16 (5 LOC)
Formula/trimmer.rb
  def install
    system "swift", "build", "-c", "release", "--product", "trimmer-cli",
           "--disable-sandbox"
    bin.install ".build/release/trimmer-cli" => "trimmer"
  end