zsh-workers
 help / color / mirror / code / Atom feed
4b46c86df87c48bf97ee36edfc67edb7fd43f57b blob 1057 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 
#compdef mysqldiff

_mysqldiff () {
  _arguments -s \
    {-h{,1,2},--host{,1,2}=}':server hostname:_mysql_hosts' \
    {-p{,1,2},--password{,1,2}=}':server password: ' \
    {-u{,1,2},--user{,1,2}=}':server username:_mysql_users' \
    {-s{,1,2},--socket{,1,2}=}':server socket:_directories' \
    {-d,--debug=}':debugging level (default 1):(1 2 3 4 5 6 7 8)' \
    {-i,--tolerant}':ignore DEFAULT and formatting changes: ' \
    {-k,--keep-old-tables}":don\'t output DROP TABLE commands: " \
    {-n,--no-old-defs}"[don't output old defs as comments]" \
    {-o,--only-both}'[only output changes for tables in both databases]' \
    {-t,--table-re}':restrict comparisons to tables matching a regexp: ' \
    {-A,--apply}':interactively patch database1 to match database2: ' \
    {-\?,--help}'[display usage]' \
    {1,2}':MySQL database:_mysql_db_or_file'
}


_mysql_db_or_file () {
  _alternative \
    'databases:MySQL databases:_mysql_databases' \
    'files:MySQL database definition files:_files -g "*.(my|)sql(-.)"'
}

_mysql_utils
_mysqldiff "$@"
debug log:

solving 4b46c86df ...
found 4b46c86df in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).