Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Formula/1password-cli.rb
Original file line number Diff line number Diff line change
@@ -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