File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ class Docopts < Formula
2+ desc "Shell interpreter for docopt, the command-line interface description language"
3+ homepage "https://github.com/docopt/docopts"
4+ url "https://github.com/docopt/docopts/archive/v0.6.4-with-no-mangle-double-dash.tar.gz"
5+ sha256 "5bf29a4eaa07cb3d1449077697d8746678cc490ee3e63cfe3e1025cebf2f4008"
6+ head "https://github.com/docopt/docopts.git" , branch : "master"
7+ license "MIT"
8+
9+ depends_on "go" => :build
10+
11+ def install
12+ system "go" , "build" , "docopts.go"
13+ prefix . install_metafiles
14+ prefix . install "docopts.sh" # helper functions, meant to be sourced
15+ end
16+
17+ test do
18+ assert_match "Shell interface for docopt, the CLI description language." , shell_output ( "#{ bin } /docopts -h" )
19+ end
20+ end
You can’t perform that action at this time.
0 commit comments