10538d11058dfc02c9399062aaa2e1fa584135b2

Author
Vinícius Picossi Teruel <vpteruel@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

docker: update to latest upstream completion (92dc906) (#8835)

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/docker/_docker b/plugins/docker/_docker
  2index 54b5e59c5e989a23ce023c3cc7d1b963dfb3fb14..10c19e2339f80006d9784cf167a54e6eb6d4cbd8 100644
  3--- a/plugins/docker/_docker
  4+++ b/plugins/docker/_docker
  5@@ -9,6 +9,7 @@
  6 #   - Felix Riedel
  7 #   - Steve Durrheimer
  8 #   - Vincent Bernat
  9+#   - Rohan Verma
 10 #
 11 # license:
 12 #
 13@@ -604,6 +605,7 @@ __docker_container_subcommand() {
 14         "($help)*--blkio-weight-device=[Block IO (relative device weight)]:device:Block IO weight: "
 15         "($help)*--cap-add=[Add Linux capabilities]:capability: "
 16         "($help)*--cap-drop=[Drop Linux capabilities]:capability: "
 17+        "($help)--cgroupns=[Cgroup namespace mode to use]:cgroup namespace mode: "
 18         "($help)--cgroup-parent=[Parent cgroup for the container]:cgroup: "
 19         "($help)--cidfile=[Write the container ID to the file]:CID file:_files"
 20         "($help)--cpus=[Number of CPUs (default 0.000)]:cpus: "
 21@@ -676,6 +678,7 @@ __docker_container_subcommand() {
 22         "($help -m --memory)"{-m=,--memory=}"[Memory limit]:Memory limit: "
 23         "($help)--memory-reservation=[Memory soft limit]:Memory limit: "
 24         "($help)--memory-swap=[Total memory limit with swap]:Memory limit: "
 25+        "($help)--pids-limit[Tune container pids limit (set -1 for unlimited)]"
 26         "($help)--restart=[Restart policy]:restart policy:(no on-failure always unless-stopped)"
 27     )
 28     opts_help=("(: -)--help[Print usage]")
 29@@ -801,7 +804,7 @@ __docker_container_subcommand() {
 30                 "($help -l --latest)"{-l,--latest}"[Show only the latest created container]" \
 31                 "($help -n --last)"{-n=,--last=}"[Show n last created containers (includes all states)]:n:(1 5 10 25 50)" \
 32                 "($help)--no-trunc[Do not truncate output]" \
 33-                "($help -q --quiet)"{-q,--quiet}"[Only show numeric IDs]" \
 34+                "($help -q --quiet)"{-q,--quiet}"[Only show container IDs]" \
 35                 "($help -s --size)"{-s,--size}"[Display total file sizes]" \
 36                 "($help)--since=[Show only containers created since...]:containers:__docker_complete_containers" && ret=0
 37             ;;
 38@@ -832,7 +835,7 @@ __docker_container_subcommand() {
 39             _arguments $(__docker_arguments) \
 40                 $opts_help \
 41                 "($help -t --time)"{-t=,--time=}"[Number of seconds to try to stop for before killing the container]:seconds to before killing:(1 5 10 30 60)" \
 42-                "($help -)*:containers:__docker_complete_containers_ids" && ret=0
 43+                "($help -)*:containers:__docker_complete_containers" && ret=0
 44             ;;
 45         (rm)
 46             local state
 47@@ -1024,7 +1027,7 @@ __docker_image_subcommand() {
 48                 $opts_help \
 49                 "($help -H --human)"{-H,--human}"[Print sizes and dates in human readable format]" \
 50                 "($help)--no-trunc[Do not truncate output]" \
 51-                "($help -q --quiet)"{-q,--quiet}"[Only show numeric IDs]" \
 52+                "($help -q --quiet)"{-q,--quiet}"[Only show image IDs]" \
 53                 "($help -)*: :__docker_complete_images" && ret=0
 54             ;;
 55         (import)
 56@@ -1056,7 +1059,7 @@ __docker_image_subcommand() {
 57                 "($help)*"{-f=,--filter=}"[Filter values]:filter:__docker_complete_images_filters" \
 58                 "($help)--format=[Pretty-print images using a Go template]:template: " \
 59                 "($help)--no-trunc[Do not truncate output]" \
 60-                "($help -q --quiet)"{-q,--quiet}"[Only show numeric IDs]" \
 61+                "($help -q --quiet)"{-q,--quiet}"[Only show image IDs]" \
 62                 "($help -): :__docker_complete_repositories" && ret=0
 63             ;;
 64         (prune)
 65@@ -1076,6 +1079,7 @@ __docker_image_subcommand() {
 66         (push)
 67             _arguments $(__docker_arguments) \
 68                 $opts_help \
 69+                "($help -a --all-tags)"{-a,--all-tags}"[Push all tagged images in the repository]" \
 70                 "($help)--disable-content-trust[Skip image signing]" \
 71                 "($help -): :__docker_complete_images" && ret=0
 72             ;;
 73@@ -1286,7 +1290,7 @@ __docker_network_subcommand() {
 74                 "($help)--no-trunc[Do not truncate the output]" \
 75                 "($help)*"{-f=,--filter=}"[Provide filter values]:filter:__docker_network_complete_ls_filters" \
 76                 "($help)--format=[Pretty-print networks using a Go template]:template: " \
 77-                "($help -q --quiet)"{-q,--quiet}"[Only display numeric IDs]" && ret=0
 78+                "($help -q --quiet)"{-q,--quiet}"[Only display network IDs]" && ret=0
 79             ;;
 80         (prune)
 81             _arguments $(__docker_arguments) \
 82@@ -2214,7 +2218,6 @@ __docker_stack_subcommand() {
 83         (deploy|up)
 84             _arguments $(__docker_arguments) \
 85                 $opts_help \
 86-                "($help)--bundle-file=[Path to a Distributed Application Bundle file]:dab:_files -g \"*.dab\"" \
 87                 "($help -c --compose-file)"{-c=,--compose-file=}"[Path to a Compose file, or '-' to read from stdin]:compose file:_files -g \"*.(yml|yaml)\"" \
 88                 "($help)--with-registry-auth[Send registry authentication details to Swarm agents]" \
 89                 "($help -):stack:__docker_complete_stacks" && ret=0
 90@@ -2668,6 +2671,7 @@ __docker_subcommand() {
 91                 "($help)*--log-opt=[Default log driver options for containers]:log driver options:__docker_complete_log_options" \
 92                 "($help)--max-concurrent-downloads[Set the max concurrent downloads for each pull]" \
 93                 "($help)--max-concurrent-uploads[Set the max concurrent uploads for each push]" \
 94+                "($help)--max-download-attempts[Set the max download attempts for each pull]" \
 95                 "($help)--mtu=[Network MTU]:mtu:(0 576 1420 1500 9000)" \
 96                 "($help)--oom-score-adjust=[Set the oom_score_adj for the daemon]:oom-score:(-500)" \
 97                 "($help -p --pidfile)"{-p=,--pidfile=}"[Path to use for daemon PID file]:PID file:_files" \
 98@@ -2783,7 +2787,7 @@ __docker_subcommand() {
 99                 $opts_help \
100                 "($help -p --password)"{-p=,--password=}"[Password]:password: " \
101                 "($help)--password-stdin[Read password from stdin]" \
102-                "($help -u --user)"{-u=,--user=}"[Username]:username: " \
103+                "($help -u --username)"{-u=,--username=}"[Username]:username: " \
104                 "($help -)1:server: " && ret=0