diff --git a/Formula/e/ente-cli.rb b/Formula/e/ente-cli.rb new file mode 100644 index 0000000000000..f449e5aa681b3 --- /dev/null +++ b/Formula/e/ente-cli.rb @@ -0,0 +1,23 @@ +class EnteCli < Formula + desc "Utility for exporting data from Ente and decrypt the export from Ente Auth" + homepage "https://github.com/ente-io/ente/tree/main/cli" + url "https://github.com/ente-io/ente/archive/refs/tags/cli-v0.2.2.tar.gz" + sha256 "d03754880fe7dfdc422b37e4864c2aa469a2b19c645346de2d2de7fa62b71de3" + license "AGPL-3.0-only" + head "https://github.com/ente-io/ente.git", branch: "main" + + depends_on "go" => :build + + def install + cd "cli" do + system "ls", "-la" + system "go", "build", *std_go_args(ldflags: "-s -w"), "main.go" + bin.install_symlink "ente-cli" => "ente" + end + end + + test do + output = shell_output("#{bin}/ente version 2>&1") + assert_match "Version #{version}", output + end +end