Skip to content

Commit 61471d9

Browse files
committed
tombi 0.6.5 (new formula)
1 parent 36e702c commit 61471d9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Formula/t/tombi.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
class Tombi < Formula
2+
desc "TOML Formatter / Linter / Language Server"
3+
homepage "https://github.com/tombi-toml/tombi"
4+
url "https://github.com/tombi-toml/tombi/archive/refs/tags/v0.6.5.tar.gz"
5+
sha256 "4d97f5c740e35b99c28f382e29a3f792241bb756371c41a66b2c64f0f7ee4a0c"
6+
license "MIT"
7+
head "https://github.com/tombi-toml/tombi.git", branch: "main"
8+
9+
depends_on "rust" => :build
10+
11+
def install
12+
system "cargo", "install", *std_cargo_args(path: "rust/tombi-cli")
13+
end
14+
15+
test do
16+
json = <<~JSON
17+
{
18+
"jsonrpc": "2.0",
19+
"id": 1,
20+
"method": "initialize",
21+
"params": {
22+
"rootUri": null,
23+
"capabilities": {}
24+
}
25+
}
26+
JSON
27+
input = "Content-Length: #{json.size}\r\n\r\n#{json}"
28+
pipe_output("#{bin}/tombi lsp", input)
29+
end
30+
end

0 commit comments

Comments
 (0)