help / color / mirror / code / Atom feed
From: Eric Cook <llua@gmx.com>
To: zsh-workers@zsh.org
Cc: beaux_monde@tut.by
Subject: Re: MySQL completion
Date: Wed, 28 Sep 2022 16:39:37 -0400	[thread overview]
Message-ID: <88ac3f88-fcd3-017c-2d80-1f025cc386d6@gmx.com> (raw)
In-Reply-To: <90a6524f-541f-5968-db16-4dd8ff196f83@tut.by>

On 9/22/22 02:31, Serge Roussak wrote:
> Hello!
> Please, add the --protocol command line option to the completion. Here is the quote from man-page:
>        • --protocol={TCP|SOCKET|PIPE|MEMORY}
>            The connection protocol to use for connecting to the server. It is useful when the other connection parameters
>            normally would cause a protocol to be used other than the one you want.

diff --git a/Completion/Unix/Command/_mysql_utils b/Completion/Unix/Command/_mysql_utils
index 9f70687b0..7c7abd596 100644
--- a/Completion/Unix/Command/_mysql_utils
+++ b/Completion/Unix/Command/_mysql_utils
@@ -210,6 +210,7 @@ _mysql_utils() {
      "--no-defaults[don't read default options from any options file]"
      '--defaults-file=[read defaults from the given file]:file:_files'
      '--defaults-extra-file=[read specified file after the global files]:defaults file:_files'
+    '--protocol=[connection protocol to use for connecting to the server]:protocol:(TCP SOCKET PIPE MEMORY)'
      '(-S --socket)'{-S+,--socket=}'[specify socket file to use for connection]:server socket file:_files'
      '(-h --host)'{-h+,--host=}'[specify server hostname]:hostname:_mysql_hosts'
      '(-P --port)'{-P+,--port=}'[specify port number for connection]:server port:_mysql_ports'

      reply	other threads:[~2022-09-28 20:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-22  6:31 Serge Roussak
2022-09-28 20:39 ` Eric Cook [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88ac3f88-fcd3-017c-2d80-1f025cc386d6@gmx.com \
    --to=llua@gmx.com \
    --cc=beaux_monde@tut.by \
    --cc=zsh-workers@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).