Skip to content

Commit

Permalink
Merge pull request Homebrew#202972 from Homebrew/python-completions-c
Browse files Browse the repository at this point in the history
c*: add argcomplete/click shell completions
  • Loading branch information
BrewTestBot authored Jan 2, 2025
2 parents 136a9cf + 84edc0e commit 8bf32a3
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 50 deletions.
16 changes: 10 additions & 6 deletions Formula/c/c7n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ class C7n < Formula
end

bottle do
sha256 cellar: :any, arm64_sequoia: "03b4e07d75450c2640ebb0bb45098fbbfe6411db3bf60398856f10137f997c81"
sha256 cellar: :any, arm64_sonoma: "f43cd4add052d0570ec3d1601c7ef55073d6cd338d605adbe168d0938a57ca46"
sha256 cellar: :any, arm64_ventura: "77e4b7d106a683557ddf7a12a65b48ab13bd60472838d8fc77eeda519e24dcd9"
sha256 cellar: :any, sonoma: "0c8939e6107c61099e0ccaef6f45de8c5b43bb5ba125a84a7c628621593aca46"
sha256 cellar: :any, ventura: "3249bf19fe561301d437a26f5335522ab5db86b51d307cdd7084367e2699ae87"
sha256 cellar: :any_skip_relocation, x86_64_linux: "da5e70a6b26c4e2384f031d24aa609f417a4665591bba67b3c6d8568f8b65eb6"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "bf7beb334ef4701fbcf3151fed55f87e26a30783d2860a2436ded659002c0598"
sha256 cellar: :any, arm64_sonoma: "5f28d607db86f50e09cdedc38800c3d60311b66f39350f607e26ba66c5c6b545"
sha256 cellar: :any, arm64_ventura: "03afcb4435af5dfcbd42a7af3248ef9ce0be10503306526fd853561a51972e80"
sha256 cellar: :any, sonoma: "5fbbacecee3ac9be7f736937efe374656beb7bdb4eb1ba391d59fa1a0c3f9c14"
sha256 cellar: :any, ventura: "4c09b7e33a71ef49d6374e52af07f696ad40e84540feab9aaec0f5c70949deab"
sha256 cellar: :any_skip_relocation, x86_64_linux: "cb90a238b4691adbe7ed8acd9a861f1e9f148dc414abb85590514b14a8049e07"
end

depends_on "rust" => :build # for rpds-py
Expand Down Expand Up @@ -118,6 +119,9 @@ class C7n < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(libexec/"bin/register-python-argcomplete", "custodian",
base_name: "custodian", shell_parameter_format: :arg)
end

test do
Expand Down
16 changes: 10 additions & 6 deletions Formula/c/censys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class Censys < Formula
revision 1

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "cd2e27b67a7a06074480fb76a6c29677d9c9273d9201442fccf754cef95dbd2e"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "cd2e27b67a7a06074480fb76a6c29677d9c9273d9201442fccf754cef95dbd2e"
sha256 cellar: :any_skip_relocation, arm64_ventura: "cd2e27b67a7a06074480fb76a6c29677d9c9273d9201442fccf754cef95dbd2e"
sha256 cellar: :any_skip_relocation, sonoma: "bdbbb9350f17a4b3bca071916c6013db8a707ea8d33d9584c51425cb4ed1a616"
sha256 cellar: :any_skip_relocation, ventura: "bdbbb9350f17a4b3bca071916c6013db8a707ea8d33d9584c51425cb4ed1a616"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7c9f92799d176079c540ba1bc64c8af60234b9231c0ba65f79e5a3482d721e04"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sequoia: "e2468a08526856c7d66619081568dcd6a99490334fdea34df559ab63444ba906"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "e2468a08526856c7d66619081568dcd6a99490334fdea34df559ab63444ba906"
sha256 cellar: :any_skip_relocation, arm64_ventura: "e2468a08526856c7d66619081568dcd6a99490334fdea34df559ab63444ba906"
sha256 cellar: :any_skip_relocation, sonoma: "2b58903e65c6062fb761d54b749efdb254bd55b82c3ab782072ec662915075b4"
sha256 cellar: :any_skip_relocation, ventura: "2b58903e65c6062fb761d54b749efdb254bd55b82c3ab782072ec662915075b4"
sha256 cellar: :any_skip_relocation, x86_64_linux: "456877334b2c34f08aa83fcbd64d2a00aa565652952f8a8ad33839b80d4dfbfd"
end

depends_on "certifi"
Expand Down Expand Up @@ -72,6 +73,9 @@ class Censys < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(libexec/"bin/register-python-argcomplete", "censys",
shell_parameter_format: :arg)
end

test do
Expand Down
16 changes: 9 additions & 7 deletions Formula/c/cfn-flip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ class CfnFlip < Formula
revision 2

bottle do
rebuild 1
sha256 cellar: :any, arm64_sequoia: "56fe9fe6185019ce53a85c5ddc71abbd373c24c27bb26a4ba6e73463b89b1df4"
sha256 cellar: :any, arm64_sonoma: "6adc448d4253f808ffc13a4d4191acd29608047c62f573916567bd5dee5cd37c"
sha256 cellar: :any, arm64_ventura: "e7a1d40f2eedb27478defd049e6779b5f8717c583f3ea3b1c8b293f3ef3bbea7"
sha256 cellar: :any, sonoma: "fb306034d555f7d8bef38114f949c89c0af36747814cb7fe91d7c59367614c96"
sha256 cellar: :any, ventura: "29d0c987000711a22b22cf4035132104e7e3decaae3980f7ef347139c6c0d30e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "4f53b22e1f37ddd7932bc70841da5bf64cff519693b166098a0309642a539406"
rebuild 2
sha256 cellar: :any, arm64_sequoia: "07d7a01e5e4b2cf04a12cf05b6255c452326347afc72cf22c755f11eee638fac"
sha256 cellar: :any, arm64_sonoma: "a30142eaa1b55eacf35e1c2573e38e516779882086ddb7c417e7bee97e556f5c"
sha256 cellar: :any, arm64_ventura: "21a22fd0985168ca5c0ac5836ca4a85928d159833fdd4e75553e9295b8e74514"
sha256 cellar: :any, sonoma: "c1497cca44686eab9b0031d34deab63258a1d891c7f8854e39558c7c60f01f96"
sha256 cellar: :any, ventura: "92e08c7a0fb66b3c691bf141fac782213907d85989945519e1dc1aa55bb686a0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8a009e9b1951f2f55ff9891c6e3366a2a66a2599f211f75ee420274f7b1ed811"
end

depends_on "libyaml"
Expand All @@ -38,6 +38,8 @@ class CfnFlip < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"cfn-flip", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
16 changes: 9 additions & 7 deletions Formula/c/cfripper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ class Cfripper < Formula
license "Apache-2.0"

bottle do
rebuild 1
sha256 cellar: :any, arm64_sequoia: "1429e31442f82a44f7afcd6e9985267e9f5d4103c5d7542805d17b737c6588d1"
sha256 cellar: :any, arm64_sonoma: "95d976d4176b99d47aa3b589f42ea47c2e0eae0c0bd5583dd0ece9dcd59da65d"
sha256 cellar: :any, arm64_ventura: "816a7c4b9102a6c3aa5b438ae336b51aa0eb342a7cf016a9076f9caebe18787c"
sha256 cellar: :any, sonoma: "416e702c1295f55617767d824916743bfde9e6fef7c1a252e87a173564905b42"
sha256 cellar: :any, ventura: "136e2aee7aca17a311b0acd5cec90dbdf4dd3a4e9799887a08a6b1b412473855"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3aebbad0f71e673ff9e0a004ad9596db6ad576d39794ed8f9616e88b97650825"
rebuild 2
sha256 cellar: :any, arm64_sequoia: "398654460557247a83832ce4eab0fd165326aa4eec70d5e3472b09c356f2667d"
sha256 cellar: :any, arm64_sonoma: "c21cf3a12a54c9c0702ce4b52b47c8cc5eae56c6bcd1c85305cb933b8741bc57"
sha256 cellar: :any, arm64_ventura: "4d23d4f5af154cd2309a705781eebde9324160981129b3ef210d7674aeb96a22"
sha256 cellar: :any, sonoma: "f5d81b15a0b85eb3a67ae0d3890e6ef063dbc334ca087dc1ca67e510c292f99d"
sha256 cellar: :any, ventura: "ba589abada4c5eeced762a6371f0cbee68f3b5f8dd182c11557e068f1e881a2f"
sha256 cellar: :any_skip_relocation, x86_64_linux: "8a73c0465a9fe3a37bb1b64ad97261cae19431f20e38ac02c41544964777667e"
end

depends_on "rust" => :build # for pydantic_core
Expand Down Expand Up @@ -108,6 +108,8 @@ class Cfripper < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"cfripper", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
15 changes: 9 additions & 6 deletions Formula/c/cloudsplaining.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ class Cloudsplaining < Formula
head "https://github.com/salesforce/cloudsplaining.git", branch: "master"

bottle do
sha256 cellar: :any, arm64_sequoia: "b3827fd360bdacf41e85cc5b08925af7ec9b1ca3940b1c60857bcfd4ee899abe"
sha256 cellar: :any, arm64_sonoma: "fe0f53d3f21648611e2e9dd827f0e1f80c46d001141bdad018074191959af70a"
sha256 cellar: :any, arm64_ventura: "d336c275c6e6979f3bcc726468e9c51b1425a50a958e724cc3ef0b7d85c44200"
sha256 cellar: :any, sonoma: "823c46577ca9dd4702edc2aa2c2949e824052e34b05d7a86dc9d1d3807fc0d13"
sha256 cellar: :any, ventura: "41f8ddcd2afc2cbf8e2b4ac8c7a26e99f7ca7ce7ff6d688a06ed6f248757c6ad"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ea82065c0278f12b19cd886c59dadde632e89e60af2f799c6cb1ea2b1013c989"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "7f7ac4cc32819c519f81d7963c7c06f60a1b9a76ac508c74cf40b558c7557b0f"
sha256 cellar: :any, arm64_sonoma: "2e4dfb39b5463db00c95d54211e82c9972e29e5416ba3e1df405b173a8cc3208"
sha256 cellar: :any, arm64_ventura: "d8aab0136a1315522fbc3ef947f56e5fadb20f9fa5bd8953c7950dc9716b70d6"
sha256 cellar: :any, sonoma: "45aa727d3dfd85e791400229f234769e128a40194d86b756827077010a7eb43a"
sha256 cellar: :any, ventura: "fb9a440d437e2abeac55ca19f98a875b49367446a106cdbe4a2a943e6893d92a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "be437d8a03cc9bdf2a741bcd39285b684cc921f92275702b7e43dce08bec67cc"
end

depends_on "rust" => :build # for orjson
Expand Down Expand Up @@ -135,6 +136,8 @@ class Cloudsplaining < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"cloudsplaining", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
15 changes: 9 additions & 6 deletions Formula/c/cobo-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class CoboCli < Formula
license "MIT"

bottle do
sha256 cellar: :any, arm64_sequoia: "fe211dbc601476b6a0d0ca8188f5c8fef8607725baa587dc46f2d4f2c1291c06"
sha256 cellar: :any, arm64_sonoma: "56f0c7feed611576176faa6b88fde7fa84a1cb096d7e7a5993ff642f7a9f064d"
sha256 cellar: :any, arm64_ventura: "79b706ccb13048773977ab8267d5c82a48c399ff343e864de655ad694d2fa9cf"
sha256 cellar: :any, sonoma: "dd6858743c4a560a0acd3ff13b95bfa0846caeff81aac55afbc250fc76ea0c58"
sha256 cellar: :any, ventura: "546d7c4a63eca9c3b15981ab6fab3e0e14bc81c304851e866331e2a399af58e3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f9c07826bda8daa2f2fda7ea7475cb461caa280b80e34442bf3d063ca4cfe6d2"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "03f0ae59508dcbee81fafbae557996d4650fe4fa1618dc1ca1455a22ee20be33"
sha256 cellar: :any, arm64_sonoma: "83ad0211dfbd36df1f81ed68d66f3dcbe44d36baaf16a3232bd7961291da0da8"
sha256 cellar: :any, arm64_ventura: "931a2a853714477b7f5a6e79b6ad228bef542c5459c3e767f53dce7d789239aa"
sha256 cellar: :any, sonoma: "5a5680c570e26141e83ccb3f35fd14e271fa72f75fea9ca450b8778e3162d31a"
sha256 cellar: :any, ventura: "68b3c825383bfcedf49ab711a0287462e2cd042670f1ddf2b5019971fe200a2a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "786835dfc48af95185b3a9ee4c84a49d9590288549117ef71af6e63135071458"
end

depends_on "certifi"
Expand Down Expand Up @@ -166,6 +167,8 @@ class CoboCli < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"cobo", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
15 changes: 9 additions & 6 deletions Formula/c/codecov-cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class CodecovCli < Formula
head "https://github.com/codecov/codecov-cli.git", branch: "main"

bottle do
sha256 cellar: :any, arm64_sequoia: "fa15506552cf2ac38410281bda8a21344813209d2f5e5cf8210f682ce1b7f756"
sha256 cellar: :any, arm64_sonoma: "8454245e95147e0a4d47b89381c377780e086651c1c30ffbb5cea1a69a98f22f"
sha256 cellar: :any, arm64_ventura: "e775a72a976b2787d73f8a143c290333b9327b7a20c6d95b31ef84ac3d88b5c9"
sha256 cellar: :any, sonoma: "53cec5f3ab28b45f933982f2b3e14ee30e4bf76bd314985051d28006442218d8"
sha256 cellar: :any, ventura: "b44ec050ba7c15c30404a963cfea25cdeec4cc1da603fa565a6719b3a134f381"
sha256 cellar: :any_skip_relocation, x86_64_linux: "3792cdb12499d6d7f47a568d142edd1d72ac9b7e751a28673bd81414fd5a9889"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "23fca690cd52cb7f53d19eb3f9ab90b485b14424252db030d8ac25a67b36af81"
sha256 cellar: :any, arm64_sonoma: "546c5f22e5b090bc1d26effaad8d5ac4eac73b2b688a820eff33be19c7e0bf13"
sha256 cellar: :any, arm64_ventura: "ea49b33a3daac4d917a29db36884fd494fbb813cd6820be8672a3d6c04907745"
sha256 cellar: :any, sonoma: "f116422e293094de9dde8323733b66e218ab04df2182f81e6e5944fb089c1b02"
sha256 cellar: :any, ventura: "f2e58168148720f3cda3417b7c0ab1fb50d29f191aa80264f2c2bbfab0725237"
sha256 cellar: :any_skip_relocation, x86_64_linux: "e5f3719d62d9a06e43b845858cf4a1107f75a19e990fda85f887b6c3009ae773"
end

depends_on "rust" => :build
Expand Down Expand Up @@ -113,6 +114,8 @@ class CodecovCli < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"codecovcli", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down
15 changes: 9 additions & 6 deletions Formula/c/conda-lock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ class CondaLock < Formula
revision 2

bottle do
sha256 cellar: :any, arm64_sequoia: "821e05329fd8e4b461ef33cfaf0d3a3a29893bc8363974f3f3c8160f587653c0"
sha256 cellar: :any, arm64_sonoma: "3eb28fd77c372fee83f7c5ca8f59c69003353185ee8150e66b93a389082e8883"
sha256 cellar: :any, arm64_ventura: "62a9bc2d5a86fb82e0749360f66c183f9a5f35f1c0664043eaad8ece8dbd48f6"
sha256 cellar: :any, sonoma: "ec910d7a2b30dc025517877693615a593566b84387c6dd016aab18a298b5a8a4"
sha256 cellar: :any, ventura: "f7ebf672a3aa2ac0b7044e3bed67c5321ac76fca372ed879a06cf968b5bd7e86"
sha256 cellar: :any_skip_relocation, x86_64_linux: "ae9f5f43655ac4e25c0b7a3ad6045eccd39ae6a75bc6f9e6de093bfa51cb79ba"
rebuild 1
sha256 cellar: :any, arm64_sequoia: "b585955227114a717f1e4b2dcb4868d9656175a65fb8da2dd22e3c7bb1ada9f8"
sha256 cellar: :any, arm64_sonoma: "cfae6edb4c19b0d2ceab2b2459bc0cd299afbee0f6dfae57c7660e3ac40eec5b"
sha256 cellar: :any, arm64_ventura: "87035793e4ef882f0b363ccace49cd5dd20c5b54cf331d4f36a63e4c686d84d3"
sha256 cellar: :any, sonoma: "56045a3de8c67237e65b80421ea4ebf0fafa834b4968d9c2a229ffbf854a689b"
sha256 cellar: :any, ventura: "ba2971ee2367066731e55ba6bcb455e7cdbe866bf0f5c2bd84272d059b457946"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b283174577881bdeea5f6241437c05405f56377bbe5894c906500c43e52ed5ba"
end

depends_on "rust" => :build # for pydantic
Expand Down Expand Up @@ -253,6 +254,8 @@ class CondaLock < Formula

def install
virtualenv_install_with_resources

generate_completions_from_executable(bin/"conda-lock", shells: [:fish, :zsh], shell_parameter_format: :click)
end

test do
Expand Down

0 comments on commit 8bf32a3

Please sign in to comment.