Skip to content

Commit 39a58db

Browse files
committed
go-passbolt-cli 0.3.2 (new formula)
Signed-off-by: Rui Chen <[email protected]>
1 parent 20677e7 commit 39a58db

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Formula/g/go-passbolt-cli.rb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
class GoPassboltCli < Formula
2+
desc "CLI for passbolt"
3+
homepage "https://www.passbolt.com/"
4+
url "https://github.com/passbolt/go-passbolt-cli/archive/refs/tags/v0.3.2.tar.gz"
5+
sha256 "4e88aa088b68a7101ca89a97184eb5427aa9b70d52df077f7d56c2ff3672fe06"
6+
license "MIT"
7+
head "https://github.com/passbolt/go-passbolt-cli.git", branch: "main"
8+
9+
depends_on "go" => :build
10+
11+
def install
12+
ldflags = "-s -w -X main.version=#{version} -X main.commit=#{tap.user} -X main.date=#{time.iso8601}"
13+
system "go", "build", *std_go_args(ldflags:, output: bin/"passbolt")
14+
15+
generate_completions_from_executable(bin/"passbolt", "completion")
16+
mkdir "man"
17+
system bin/"passbolt", "gendoc", "--type", "man"
18+
man1.install Dir["man/*.1"]
19+
end
20+
21+
test do
22+
assert_match version.to_s, shell_output("#{bin}/passbolt --version")
23+
assert_match "Error: serverAddress is not defined", shell_output("#{bin}/passbolt list user 2>&1", 1)
24+
end
25+
end

0 commit comments

Comments
 (0)