File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments