Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: MySQL completion



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'





Messages sorted by: Reverse Date, Date, Thread, Author