alexchantastic / lipsum-shell

A shell script to generate lorem ipsum dummy text
MIT License
5 stars 3 forks source link

Add to package repositories for easy instllation #8

Open alexchantastic opened 5 months ago

alexchantastic commented 5 months ago
danielbayley commented 2 months ago

@alexchantastic Working formula:

class LipsumShell < Formula
  desc "A shell script to generate lorem ipsum dummy text"
  repo = "https://github.com/alexchantastic/lipsum-shell"
  homepage "#{repo}#readme"
  url "#{repo}/archive/refs/tags/v2.0.0.tar.gz"
  sha256 "3bfa7f639ddd79cb0f7b38d5d3d72b46a72e74e27def2d08130a62b90b961cae"
  license "MIT"

  def install
    doc.install_metafiles
    bin.install "lipsum.sh" => "lipsum"
  end

  test do
    latin = shell_output bin/"lipsum words 2"
    assert_match /^\w+\s+\w+$/, latin
  end
end