From d1b4db4995e2dc822113d6036931bee68a53f04f Mon Sep 17 00:00:00 2001 From: Chance Snow Date: Wed, 8 Apr 2020 10:13:29 -0700 Subject: [PATCH] Add new formula, 1password-cli, version 0.9.4 --- Formula/1password-cli.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Formula/1password-cli.rb diff --git a/Formula/1password-cli.rb b/Formula/1password-cli.rb new file mode 100644 index 0000000..cbb69d3 --- /dev/null +++ b/Formula/1password-cli.rb @@ -0,0 +1,26 @@ +class OnePasswordCli < Formula + name "1password-cli" + desc "1Password CLI" + homepage "https://support.1password.com/command-line/" + version "0.9.4" + + url "https://cache.agilebits.com/dist/1P/op/pkg/v#{version}/op_linux_amd64_v0.9.4.zip" + sha256 "02ecf34ea840552926d3273bcf07f08658c3c5481e8f1630b48eb7c841f4ed8b" + + bottle :unneeded + + def install + libexec.install Dir["*"] + bin.install_symlink("#{libexec}/op" => "op") + end + + def caveats; <<~EOS + Executable is linked as "op". + EOS + end + + test do + system "#{bin}/op", "--version" + end +end +