aboutsummaryrefslogtreecommitdiffstats
path: root/HomebrewFormula/passextract.rb
blob: 11a537ba9e9d68aed0e540b57aae20dabdfe2984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Passextract < Formula
  desc "An interface to easily copy login information from Pass"
  homepage "https://github.com/teddywing/Passextract"
  version "0.4.0"
  url "https://github.com/teddywing/Passextract/releases/download/v0.4.0/passextract-0.4.0_osx_amd64.tar.bz2"
  sha256 "622439d19d2cedde4c6666d29cc9fad5487083da3e26660b66910e2f469eb54e"

  def install
    bin.install "passextract"
    bash_completion.install "passextract.bash-completion" => "passextract"
    man1.install "passextract.1"
  end

  def caveats; <<~EOS
    To enable tab completion, add the following to your bash profile:

        source #{etc}/bash_completion.d/passextract
    EOS
  end
end