Skip to content

Commit 2fb14f2

Browse files
bevanjkaycarlocab
andcommitted
cot 0.1.0 (new formula)
Co-authored-by: Carlo Cabrera <[email protected]>
1 parent 0bebede commit 2fb14f2

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Formula/c/cot.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
class Cot < Formula
2+
desc "Rust web framework for lazy developers"
3+
homepage "https://cot.rs"
4+
url "https://github.com/cot-rs/cot/archive/refs/tags/v0.1.0.tar.gz"
5+
sha256 "5021dcf1c754865081b4bfa1458cc4adeba96da57f22415cefdc8d573324788a"
6+
license "Apache-2.0"
7+
8+
depends_on "rust" => :build
9+
10+
def install
11+
system "cargo", "install", *std_cargo_args(path: "cot-cli")
12+
end
13+
14+
test do
15+
assert_match "cot-cli #{version}", shell_output("#{bin}/cot --version")
16+
17+
system bin/"cot", "new", "test-project"
18+
assert_path_exists testpath/"test-project/Cargo.toml"
19+
end
20+
end

0 commit comments

Comments
 (0)