conda-zsh-completion 0.9 (new formula)

* feat: a formula to install conda-zsh-completion
* test: add test for conda-zsh-completion.rb
* fix: make the syntax of regex more rigorous

Closes #117222.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Mogeko 2022-12-03 19:38:43 +01:00 committed by BrewTestBot
parent 3995cd7402
commit fafb9d8c5f
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
class CondaZshCompletion < Formula
desc "Zsh completion for conda"
homepage "https://github.com/conda-incubator/conda-zsh-completion"
url "https://github.com/conda-incubator/conda-zsh-completion/archive/refs/tags/v0.9.tar.gz"
sha256 "beb79bfe083551628cad3fe6bb6e39cd638c1c44f83a3c9c7f251ec4d20b5ade"
license "WTFPL"
head "https://github.com/conda-incubator/conda-zsh-completion.git", branch: "master"
uses_from_macos "zsh" => :test
def install
zsh_completion.install "_conda"
end
test do
assert_match(/^_conda \(\) \{/,
shell_output("zsh -c 'fpath=(#{zsh_completion} $fpath); autoload _conda; which _conda'"))
end
end