blob: 446bf887a7cd5ae289f9fb2e9248a19503989541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
class Harvester < Formula
desc "A program that wraps 'hcl' to interact with Harvest with a Timetasker-like interface"
homepage "https://github.com/teddywing/harvester"
url "https://github.com/teddywing/harvester/archive/v0.2.0.tar.gz"
sha256 "50533a5d61a6363581bb0cd5856ec7f7175ae60933001e761fa96520b4aed897"
def install
bin.install "harvester"
bash_completion.install "harvester.bash-completion" => "harvester"
end
def caveats; <<~EOS
To enable tab completion, add the following to your bash profile:
source #{etc}/bash_completion.d/harvester
EOS
end
test do
shell_output("bash -c 'harvester --help'")
end
end
|