From 7bb059b523827d49cc8f56f1d1c7d02befd29222 Mon Sep 17 00:00:00 2001
From: nandahkrishna <nanda.harishankar@gmail.com>
Date: Thu, 4 Feb 2021 17:49:38 +0530
Subject: [PATCH] Update manpage and completions

---
 completions/bash/brew                  | 16 ++++++++++++++++
 completions/fish/brew.fish             |  7 +++++++
 completions/internal_commands_list.txt |  1 +
 completions/zsh/_brew                  | 10 ++++++++++
 docs/Manpage.md                        |  4 ++++
 manpages/brew.1                        |  3 +++
 6 files changed, 41 insertions(+)

diff --git a/completions/bash/brew b/completions/bash/brew
index 71098288b9..abd7782871 100644
--- a/completions/bash/brew
+++ b/completions/bash/brew
@@ -2108,6 +2108,21 @@ _brew_update_license_data() {
   esac
 }
 
+_brew_update_maintainers() {
+  local cur="${COMP_WORDS[COMP_CWORD]}"
+  case "$cur" in
+    -*)
+      __brewcomp "
+      --debug
+      --help
+      --quiet
+      --verbose
+      "
+      return
+      ;;
+  esac
+}
+
 _brew_update_python_resources() {
   local cur="${COMP_WORDS[COMP_CWORD]}"
   case "$cur" in
@@ -2382,6 +2397,7 @@ _brew() {
     up) _brew_up ;;
     update) _brew_update ;;
     update-license-data) _brew_update_license_data ;;
+    update-maintainers) _brew_update_maintainers ;;
     update-python-resources) _brew_update_python_resources ;;
     update-report) _brew_update_report ;;
     update-test) _brew_update_test ;;
diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish
index d146d6ce6c..a2c251d9b9 100644
--- a/completions/fish/brew.fish
+++ b/completions/fish/brew.fish
@@ -1439,6 +1439,13 @@ __fish_brew_complete_arg 'update-license-data' -l quiet -d 'Make some output mor
 __fish_brew_complete_arg 'update-license-data' -l verbose -d 'Make some output more verbose'
 
 
+__fish_brew_complete_cmd 'update-maintainers' 'Update the list of maintainers in the `Homebrew/brew` README'
+__fish_brew_complete_arg 'update-maintainers' -l debug -d 'Display any debugging information'
+__fish_brew_complete_arg 'update-maintainers' -l help -d 'Show this message'
+__fish_brew_complete_arg 'update-maintainers' -l quiet -d 'Make some output more quiet'
+__fish_brew_complete_arg 'update-maintainers' -l verbose -d 'Make some output more verbose'
+
+
 __fish_brew_complete_cmd 'update-python-resources' 'Update versions for PyPI resource blocks in formula'
 __fish_brew_complete_arg 'update-python-resources' -l debug -d 'Display any debugging information'
 __fish_brew_complete_arg 'update-python-resources' -l exclude-packages -d 'Exclude these packages when finding resources'
diff --git a/completions/internal_commands_list.txt b/completions/internal_commands_list.txt
index b1d36a5ddc..0b5931a16e 100644
--- a/completions/internal_commands_list.txt
+++ b/completions/internal_commands_list.txt
@@ -97,6 +97,7 @@ untap
 up
 update
 update-license-data
+update-maintainers
 update-python-resources
 update-reset
 update-test
diff --git a/completions/zsh/_brew b/completions/zsh/_brew
index 7792c24eed..22c4e2e749 100644
--- a/completions/zsh/_brew
+++ b/completions/zsh/_brew
@@ -212,6 +212,7 @@ __brew_internal_commands() {
     'untap:Remove a tapped formula repository'
     'update:Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations'
     'update-license-data:Update SPDX license data in the Homebrew repository'
+    'update-maintainers:Update the list of maintainers in the `Homebrew/brew` README'
     'update-python-resources:Update versions for PyPI resource blocks in formula'
     'update-report:The Ruby implementation of `brew update`'
     'update-reset:Fetch and reset Homebrew and all tap repositories (or any specified repository) using `git`(1) to their latest `origin/HEAD`'
@@ -1677,6 +1678,15 @@ _brew_update_license_data() {
     '--verbose[Make some output more verbose]'
 }
 
+# brew update-maintainers
+_brew_update_maintainers() {
+  _arguments \
+    '--debug[Display any debugging information]' \
+    '--help[Show this message]' \
+    '--quiet[Make some output more quiet]' \
+    '--verbose[Make some output more verbose]'
+}
+
 # brew update-python-resources
 _brew_update_python_resources() {
   _arguments \
diff --git a/docs/Manpage.md b/docs/Manpage.md
index 2581d00e34..c7a72bd5ff 100644
--- a/docs/Manpage.md
+++ b/docs/Manpage.md
@@ -1384,6 +1384,10 @@ Update SPDX license data in the Homebrew repository.
 * `--fail-if-not-changed`:
   Return a failing status code if current license data's version is the same as the upstream. This can be used to notify CI when the SPDX license data is out of date.
 
+### `update-maintainers`
+
+Update the list of maintainers in the `Homebrew/brew` README.
+
 ### `update-python-resources` [*`options`*] *`formula`* [...]
 
 Update versions for PyPI resource blocks in *`formula`*.
diff --git a/manpages/brew.1 b/manpages/brew.1
index 81c06baee8..759b9edbad 100644
--- a/manpages/brew.1
+++ b/manpages/brew.1
@@ -1916,6 +1916,9 @@ Update SPDX license data in the Homebrew repository\.
 \fB\-\-fail\-if\-not\-changed\fR
 Return a failing status code if current license data\'s version is the same as the upstream\. This can be used to notify CI when the SPDX license data is out of date\.
 .
+.SS "\fBupdate\-maintainers\fR"
+Update the list of maintainers in the \fBHomebrew/brew\fR README\.
+.
 .SS "\fBupdate\-python\-resources\fR [\fIoptions\fR] \fIformula\fR [\.\.\.]"
 Update versions for PyPI resource blocks in \fIformula\fR\.
 .
-- 
GitLab