Skip to content

Commit 76e468d

Browse files
p-linnanechenrui333
authored andcommitted
codesnap 0.8.3 (new formula)
Signed-off-by: Patrick Linnane <[email protected]> codesnap: skip linux ci test Signed-off-by: Rui Chen <[email protected]>
1 parent 409b114 commit 76e468d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/autobump.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ code-server
541541
codec2
542542
codelimit
543543
coder
544+
codesnap
544545
codespell
545546
codevis
546547
cog

Formula/c/codesnap.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)