File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -541,6 +541,7 @@ code-server
541541codec2
542542codelimit
543543coder
544+ codesnap
544545codespell
545546codevis
546547cog
Original file line number Diff line number Diff line change 1+ class Codesnap < Formula
2+ desc "Generates code snapshots in various formats"
3+ homepage "https://github.com/mistricky/CodeSnap"
4+ url "https://github.com/mistricky/CodeSnap/archive/refs/tags/v0.8.3.tar.gz"
5+ sha256 "acb3e160039c9986f4566f3504df2c820558e62b7a412d4fd5030008f2c44f81"
6+ license "MIT"
7+ head "https://github.com/mistricky/CodeSnap.git" , branch : "main"
8+
9+ depends_on "rust" => :build
10+
11+ def install
12+ system "cargo" , "install" , *std_cargo_args ( path : "cli" )
13+
14+ pkgshare . install "examples"
15+ end
16+
17+ test do
18+ assert_match version . to_s , shell_output ( "#{ bin } /codesnap --version" )
19+
20+ # Fails in Linux CI with "no default font found"
21+ return if OS . linux? && ENV [ "HOMEBREW_GITHUB_ACTIONS" ]
22+
23+ assert_match "SUCCESS" , shell_output ( "#{ bin } /codesnap -f #{ pkgshare } /examples/cli.sh -o cli.png" )
24+ end
25+ end
You can’t perform that action at this time.
0 commit comments