Skip to content

Commit

Permalink
New formula 😏
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynforthewyn committed Sep 12, 2023
1 parent ac8bb1d commit 6b71b6c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Formula/templ.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Documentation: https://docs.brew.sh/Formula-Cookbook

Check failure on line 1 in Formula/templ.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Comments: Please remove default template comments
# https://rubydoc.brew.sh/Formula
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST!

Check failure on line 3 in Formula/templ.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Comments: Please remove default template comments
class Templ < Formula
desc "A templating tool that downloads git repositories."

Check failure on line 5 in Formula/templ.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Desc: Description shouldn't start with an article.

Check failure on line 5 in Formula/templ.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Desc: Description shouldn't end with a full stop.
homepage "https://github.com/PlayTechnique/templ"
url "https://github.com/PlayTechnique/templ/archive/refs/tags/0.1.0.tar.gz"
sha256 "c01f758adc1d690c4a6fc8a4e1ed56133d89d52fb14c8d359cf1387f8ec57ca0"
license ""

depends_on "go" => :build

def install
# ENV.deparallelize # if your formula fails when building in parallel

Check failure on line 14 in Formula/templ.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Comments: Please remove default template comments
system "go", "build", *std_go_args(ldflags: "-s -w")
end

test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test templ`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
end

Check failure on line 30 in Formula/templ.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Layout/TrailingEmptyLines: Final newline missing.

0 comments on commit 6b71b6c

Please sign in to comment.