launchctl-completion: import from homebrew/completions.

master
Mike McQuaid 2017-01-23 15:26:30 +00:00
parent d4047f65fb
commit 97686e2316
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
class LaunchctlCompletion < Formula
desc "Bash completion for Launchctl"
homepage "https://github.com/CamJN/launchctl-completion"
url "https://github.com/CamJN/launchctl-completion/archive/v1.0.tar.gz"
sha256 "b21c39031fa41576d695720b295dce57358c320964f25d19a427798d0f0df7a0"
bottle :unneeded
def install
bash_completion.install "launchctl-completion.sh" => "launchctl"
end
test do
assert_match "-F _launchctl",
shell_output("bash -c 'source #{bash_completion}/launchctl && complete -p launchctl'")
end
end