-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rui Chen <[email protected]>
- Loading branch information
1 parent
e9de46d
commit 563c2c9
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2526,6 +2526,7 @@ procps | |
procs | ||
proftpd | ||
proj | ||
projectable | ||
prometheus | ||
prometheus-cpp | ||
promptfoo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class Projectable < Formula | ||
desc "TUI file manager built for projects" | ||
homepage "https://dzfrias.dev/blog/projectable" | ||
url "https://github.com/dzfrias/projectable/archive/refs/tags/1.3.0.tar.gz" | ||
sha256 "fe1c0edf9f14f2cd9cfef7e9af921f3e4b307b5c518a7b79f96563d6269a1e72" | ||
license "MIT" | ||
head "https://github.com/dzfrias/projectable.git", branch: "main" | ||
|
||
depends_on "pkgconf" => :build | ||
depends_on "rust" => :build | ||
depends_on "openssl@3" | ||
|
||
def install | ||
system "cargo", "install", *std_cargo_args | ||
end | ||
|
||
test do | ||
Check failure on line 17 in Formula/p/projectable.rb GitHub Actions / Linux`brew test --verbose projectable` failed on Linux!
|
||
ENV["NO_COLOR"] = "1" | ||
|
||
assert_match version.to_s, shell_output("#{bin}/prj --version") | ||
|
||
begin | ||
output_log = testpath/"output.log" | ||
pid = spawn bin/"prj", testpath, [:out, :err] => output_log.to_s | ||
sleep 1 | ||
assert_match "output.log", output_log.read | ||
ensure | ||
Process.kill("TERM", pid) | ||
Process.wait(pid) | ||
end | ||
end | ||
end |