From f963dfd9db1c96e14f21ebcbf147733b799016f9 Mon Sep 17 00:00:00 2001 From: Max Eisner <4730112+max-ae@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:46:48 +0200 Subject: [PATCH] httpie: add completions Closes #110102. Signed-off-by: Branch Vincent <19800529+branchvincent@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/httpie.rb | 7 +++++-- pypi_formula_mappings.json | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Formula/httpie.rb b/Formula/httpie.rb index 67e9a16e9fb..1dc038da929 100644 --- a/Formula/httpie.rb +++ b/Formula/httpie.rb @@ -3,8 +3,8 @@ class Httpie < Formula desc "User-friendly cURL replacement (command-line HTTP client)" homepage "https://httpie.io/" - url "https://files.pythonhosted.org/packages/e9/38/e94dac67b61f4dab49c1d26dd47e0b13be8c69c8c1c4fad5a4a87de1d647/httpie-3.2.1.tar.gz" - sha256 "c9c0032ca3a8d62492b7231b2dd83d94becf3b71baf8a4bbcd9ed1038537e3ec" + url "https://github.com/httpie/httpie/archive/refs/tags/3.2.1.tar.gz" + sha256 "803e1624e005c2f7002802a77ebc687b05375aca76af42639f844405328633eb" license "BSD-3-Clause" head "https://github.com/httpie/httpie.git", branch: "master" @@ -92,6 +92,9 @@ class Httpie < Formula man1.install_symlink libexec/"share/man/man1/http.1" man1.install_symlink libexec/"share/man/man1/https.1" man1.install_symlink libexec/"share/man/man1/httpie.1" + + bash_completion.install "extras/httpie-completion.bash" => "httpie" + fish_completion.install "extras/httpie-completion.fish" => "httpie.fish" end test do diff --git a/pypi_formula_mappings.json b/pypi_formula_mappings.json index 33705718c1a..4d76c285666 100644 --- a/pypi_formula_mappings.json +++ b/pypi_formula_mappings.json @@ -193,6 +193,7 @@ "howdoi": { "exclude_packages": ["six"] }, + "httpie": "httpie", "http-prompt": { "exclude_packages": ["six"] },