File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ class FabricAi < Formula
2
+ desc "Open-source framework for augmenting humans using AI"
3
+ homepage "https://danielmiessler.com/p/fabric-origin-story"
4
+ url "https://github.com/danielmiessler/fabric/archive/refs/tags/v1.4.161.tar.gz"
5
+ sha256 "b5b53903b36ddecf26dbd63418ad60e15e16a99d546fe39ed874ca26885af37a"
6
+ license "MIT"
7
+ head "https://github.com/danielmiessler/fabric.git" , branch : "main"
8
+
9
+ bottle do
10
+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "7e64cebca775c3b216210804d58a008ba77c33152185620d81baa539fff33f8b"
11
+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "7e64cebca775c3b216210804d58a008ba77c33152185620d81baa539fff33f8b"
12
+ sha256 cellar : :any_skip_relocation , arm64_ventura : "7e64cebca775c3b216210804d58a008ba77c33152185620d81baa539fff33f8b"
13
+ sha256 cellar : :any_skip_relocation , sonoma : "5b14fd9567637be42b687ccbe50333b4673ac721df646f0cb333e33ac8ee7c3a"
14
+ sha256 cellar : :any_skip_relocation , ventura : "5b14fd9567637be42b687ccbe50333b4673ac721df646f0cb333e33ac8ee7c3a"
15
+ sha256 cellar : :any_skip_relocation , x86_64_linux : "2afcccea05e9bf6a75a86ae5d6631971da537e3c8b5817a5adb1d83865ce13f9"
16
+ end
17
+
18
+ depends_on "go" => :build
19
+
20
+ def install
21
+ system "go" , "build" , *std_go_args ( ldflags : "-s -w" )
22
+ end
23
+
24
+ test do
25
+ assert_match version . to_s , shell_output ( "#{ bin } /fabric-ai --version" )
26
+
27
+ ( testpath /".config/fabric/.env" ) . write ( "t\n " )
28
+ output = shell_output ( "#{ bin } /fabric-ai --dry-run < /dev/null 2>&1" )
29
+ assert_match "error loading .env file: unexpected character" , output
30
+ end
31
+ end
You can’t perform that action at this time.
0 commit comments