Skip to content

Commit

Permalink
chore: add ctp CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Nov 4, 2023
1 parent df55a9d commit d76b040
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Formula/ctp.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class Ctp < Formula
desc "Soothing pastel theme manager "

Check failure on line 2 in Formula/ctp.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Desc: Description shouldn't have trailing spaces.
homepage "https://github.com/catppuccin/cli"
url "https://github.com/catppuccin/cli/archive/refs/tags/v2.0.0.tar.gz"
sha256 "476cd9664afd58e64a4430e2462cb09d159f31e29119a82bcb02b305b99e30cd"
license "MIT"
head "https://github.com/catppuccin/cli.git", branch: "main"

depends_on "go" => :build

def install
ENV["CGO_ENABLED"] = "0"
ldflags = %W[
-s -w
-X main.version=#{version}
-X main.date=#{time.iso8601}
]
system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/ctp"
end

test do
assert_predicate (bin/"ctp"), :exist?
end
end

0 comments on commit d76b040

Please sign in to comment.