Commit Graph

693 Commits

Author SHA1 Message Date
1629ef044b Add zsh completion for 'docker service {create,update} --rollback-*'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 4cb6ab4eb5
Component: cli
2017-06-02 00:10:59 +00:00
bb72ecdf9a Add zsh completion for 'docker logs --no-task-ids --no-trunc'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: a7af767c0d
Component: cli
2017-06-02 00:10:59 +00:00
1116d4a8b0 Add zsh completion for 'docker service {create,update} --stop-signal'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 7931960ded
Component: cli
2017-06-02 00:10:59 +00:00
26034416e6 Add zsh completion for 'docker network inspect --verbose'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 80482d7f96
Component: cli
2017-06-02 00:10:59 +00:00
759c5407ed Add zsh completion for 'docker build --add-host'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 9a46875a95
Component: cli
2017-06-02 00:10:59 +00:00
37fbe0e3bd Add zsh completion for 'docker service {create,update} --placement-pref'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 0e6eb9976b
Component: cli
2017-06-02 00:10:59 +00:00
f9360e39d0 Bash completion for docker node update completes only one node
`docker node update` accepts only one node.
Before this change, bash completion would complete additional nodes.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bd1c58ccaf
Component: cli
2017-06-02 00:10:58 +00:00
cb9f0f940b Fix zsh-completion for containers in status 'created'
This patch makes sure that containers in the created-stated are
counted as stopped containers. Otherwise if you create a container,
don't run it and type: "docker rm ", followed by pressing tab in zsh, it won't show up.

Signed-off-by: Nikolas Garofil <nikolas.garofil@uantwerpen.be>
Signed-off-by: Nikolas Garofil <nikolas@garofil.be>
Upstream-commit: 7150d7328c
Component: cli
2017-06-02 00:10:58 +00:00
aab4ed70ae Improve bash completion for docker rm
`docker rm` can delete containers in state=created, too.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 1c56dfab6f
Component: cli
2017-06-02 00:10:58 +00:00
74ed308aa5 Add bash completion for service ls --filter mode
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d9192b85d5
Component: cli
2017-06-02 00:10:58 +00:00
248439d169 Add bash completion for node|service|stack ps --format
Also add `--quiet|-q` where it was missing.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 36f5fc7909
Component: cli
2017-06-02 00:10:58 +00:00
a402058f93 Add bash completion for network inspect --verbose
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 977e1238ec
Component: cli
2017-06-02 00:10:58 +00:00
79b127dadd Update bash completion for docker service logs
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 145bb0218d
Component: cli
2017-06-02 00:10:57 +00:00
e1a7a667a3 Fix fish autocompletion with custom ps output
In the docker config.json, if `psFormat` or `imagesFormat` is set to a
non-standard format, it breaks autocompletion.

This fixes the issue by using a custom format.

Signed-off-by: Chris Gibson <chris@chrisg.io>
Upstream-commit: 25654c4e13
Component: cli
2017-06-02 00:10:57 +00:00
8be15cc17b Add bash completion for topology-aware scheduling
- bash completion for `docker service create --placement-pref`
- bash completion for `docker service update --placement-pref-{add,rm}`

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f50f5f8944
Component: cli
2017-06-02 00:10:57 +00:00
4a4c095ddf Fix bash completion for service constraints
- Remove bash completion for `service update --constraint`
- Add bash completion for `service update --constraint-{add,rm}`

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 380be7f725
Component: cli
2017-06-02 00:10:57 +00:00
f439e07413 Improve bash completion for create|run --stop-signal
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: fa5297b853
Component: cli
2017-06-02 00:10:57 +00:00
326047d6b9 Add bash completion for service create|update --stop-signal
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f6f45c14ec
Component: cli
2017-06-02 00:10:57 +00:00
d740c90562 Add support for command aliases to bash completion of docker volume
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 77cdc06233
Component: cli
2017-06-02 00:10:57 +00:00
eeef5fa0fb Improve bash completion for service create|update --update-failure-action
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 0f47a7b1ef
Component: cli
2017-06-02 00:10:57 +00:00
09b39a76f1 Add bash completion for service create|update --rollback-*
Also remove wrong completion for `docker service create --rollback`

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 0ada299b10
Component: cli
2017-06-02 00:10:56 +00:00
e63c8ee73b Improve POSIX compatibility of bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9f967c7050
Component: cli
2017-06-02 00:10:56 +00:00
a39ef73c0d Bash completion for docker service ps completes only one service
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 85db624317
Component: cli
2017-06-02 00:10:56 +00:00
bad34967bc Hide aliases in bash completion of docker node|service
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9f2d9da271
Component: cli
2017-06-02 00:10:56 +00:00
6d2c16f8fd Add bash completion for docker build --add-host
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: a584bd3b1a
Component: cli
2017-06-02 00:10:56 +00:00
ff678e443c Fix bash completion for docker service ps --filter node
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 09b2383b91
Component: cli
2017-06-02 00:10:56 +00:00
6ad7098f18 Add completion for --filter desired-state=shutdown
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 0ec2d368a8
Component: cli
2017-06-02 00:10:56 +00:00
e0bd29f9ac Add bash completion for missing filters of docker node ls
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 170fa8ca4c
Component: cli
2017-06-02 00:10:55 +00:00
0e004eba24 Activate bash completion for Windows executable
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bf0f159175
Component: cli
2017-06-02 00:10:55 +00:00
53eb368255 Add zsh completion for docker log options 'max-buffer-size|mode'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 8c14c4f001
Component: cli
2017-06-02 00:10:55 +00:00
e990a45379 Fix bash completion for start --checkpoint
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f004bb9cf9
Component: cli
2017-06-02 00:10:55 +00:00
aa0cc42243 Add zsh completion for 'docker service logs' command
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 924aff0cd4
Component: cli
2017-06-02 00:10:55 +00:00
14c4467684 Add zsh completion for 'docker checkpoint' commands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 6108385baa
Component: cli
2017-06-02 00:10:54 +00:00
07f5778f94 Add zsh completion for missing 'docker plugin' commands and options
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: d5c236ca20
Component: cli
2017-06-02 00:10:54 +00:00
b41c5d712a Fix useless trailing backslash in zsh completion
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: a93d410af7
Component: cli
2017-06-02 00:10:54 +00:00
f7828d31ba Add cache invalidation in zsh completion when the DOCKER_HIDE_LEGACY_COMMANDS envvar changes
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 8691d0dd68
Component: cli
2017-06-02 00:10:54 +00:00
b62be1dbab Convert script shebangs from "#!/bin/bash" to "#!/usr/bin/env bash"
This is especially important for distributions like NixOS where `/bin/bash` doesn't exist, or for MacOS users who've installed a newer version of Bash than the one that comes with their OS.

Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Upstream-commit: e6a4e7507c
Component: cli
2017-06-02 00:10:54 +00:00
f742188241 Add bash completion for docker plugin upgrade
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f2aab00321
Component: cli
2017-06-02 00:10:54 +00:00
2d75a5d4da Fix bash completion for --log-opt mode
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: af095f572e
Component: cli
2017-06-02 00:10:54 +00:00
a725b24df3 Add zsh completion for 'docker {service ls,stack services} --format'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: f8462e533e
Component: cli
2017-06-02 00:10:54 +00:00
5198d702bc Add zsh completion for 'docker {ps,service ls} --filter expose|publish'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: d36a82bcaf
Component: cli
2017-06-02 00:10:54 +00:00
b90b87733a Add zsh completion for 'dockerd --default-shm-size'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: e4c858dba4
Component: cli
2017-06-02 00:10:54 +00:00
282cc0b3cb Add zsh completion for 'docker build --squash'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 58ef5d4760
Component: cli
2017-06-02 00:10:54 +00:00
e120edc8e0 Add zsh completion for 'docker swarm unlock|unlock-key' commands
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: acff7d285d
Component: cli
2017-06-02 00:10:54 +00:00
ae910fdbcf Add zsh completion for missing 'docker swarm init|update' options
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 620247aab4
Component: cli
2017-06-02 00:10:54 +00:00
f0550de5d1 Improve bash completion for docker plugin enable|disable
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 221d15877d
Component: cli
2017-06-02 00:10:53 +00:00
2a1922b8e3 Add bash completion for docker ps --filter expose|publish
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f1cef9c7ab
Component: cli
2017-06-02 00:10:53 +00:00
1284543723 Add bash completion for docker plugin ls --filter
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f26c735282
Component: cli
2017-06-02 00:10:53 +00:00
35aa1f008a Add bash completion for {stack services,service ls} --format
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f7e0aa39fa
Component: cli
2017-06-02 00:10:52 +00:00
8a781f7442 Add bash completion for dockerd --default-shm-size
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 1d032d8b1e
Component: cli
2017-06-02 00:10:52 +00:00