Commit Graph

257 Commits

Author SHA1 Message Date
d6a19a45a1 Improve key specific bash subcompletions
The obscure `case "${words[$cword-2]}$prev=" in` idiom is no
longer used for key specific completions in options with map values.

The `__docker_map_key_of_current_option()` function does a much
better job.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: fcad8ce206
Component: cli
2017-06-02 00:07:28 +00:00
7e815e8fc6 Check key specific bash subcompletions first
This is a refactoring in preparation of cleaning up the handling
of key specific subcompletions.

The new `__docker_map_key_of_current_option()` function will be used
instead of the `__docker_map_key_of_current_option()` idiom in the
following commit.
As this function is very specific, checks using it should be executed
before those checking for `$prev`.

This commit just moves the checks without any modification.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 904481becd
Component: cli
2017-06-02 00:07:28 +00:00
c35b255fed Add some basic bash completion for seccomp values
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
Upstream-commit: 3dd7289df6
Component: cli
2017-06-02 00:07:28 +00:00
2f5f29f216 Add powershell completion support
Initial version of powershell tab completion. It completes
commands and container names.

Signed-off-by: Sam Neirinck <sam@samneirinck.com>
Upstream-commit: 494ae5e825
Component: cli
2017-06-02 00:07:28 +00:00
c569643ac6 Allow disabling of colored Docker logs via daemon flag.
Signed-off-by: Vincent Woo <me@vincentwoo.com>
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 1a10df30ce
Component: cli
2017-06-02 00:07:27 +00:00
4076bc780d update bash completions for push and pull
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Upstream-commit: 5420ca8cde
Component: cli
2017-06-02 00:07:27 +00:00
5a7e5302c6 Improve bash completion for users and groups
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 49347e571c
Component: cli
2017-06-02 00:07:27 +00:00
da0b87b3b6 bash completion for journald tag support
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 437b2748c2
Component: cli
2017-06-02 00:07:27 +00:00
4649915bb4 Improve bash completion for docker volume ls -f dangling
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5d1e84419a
Component: cli
2017-06-02 00:07:27 +00:00
0d0af7552d Let bash completion for docker network rm only complete custom networks
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 0c473c9e9c
Component: cli
2017-06-02 00:07:27 +00:00
196808c668 Fix bash completion for docker volume ls --dangling=false.
Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 0441148c7d
Component: cli
2017-06-02 00:07:26 +00:00
cb662ca713 bash completion for docker daemon --userns-remap
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 645055b37d
Component: cli
2017-06-02 00:07:26 +00:00
17e906122a Add zsh completion for 'docker cp -L --follow-link'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 2e6cd43572
Component: cli
2017-06-02 00:07:26 +00:00
9e0a30c1e8 Add zsh completion for new 'docker daemon --log-opt syslog-tls-ca-cert syslog-tls-cert syslog-tls-key syslog-tls-skip-verify' options
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 922fa19637
Component: cli
2017-06-02 00:07:26 +00:00
900f0830e2 Add zsh completion for new 'docker daemon --cluster-store-opt discovery.heartbeat discovery.ttl kv.path' options
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: f73b4335ff
Component: cli
2017-06-02 00:07:26 +00:00
a6cc17338a fix minor bash completion issue on OSX (compopt)
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f9a1ff0795
Component: cli
2017-06-02 00:07:26 +00:00
d60ff884b6 bash completion for syslog over TLS log driver
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bdfbd1d9a6
Component: cli
2017-06-02 00:07:26 +00:00
ceb1b79744 bash completion for --cluster-store-opt kv.path discovery.{heartbeat,ttl}
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d75f2e95a0
Component: cli
2017-06-02 00:07:26 +00:00
b26213077f remove zsh completion for docker tag -f
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d6d6954d61
Component: cli
2017-06-02 00:07:26 +00:00
e90086e143 remove bash completion for docker tag -f
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: b50ca03b9a
Component: cli
2017-06-02 00:07:26 +00:00
c8e83c8fba bash completion for docker ps --filter status=dead
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 58013afb39
Component: cli
2017-06-02 00:07:26 +00:00
ca11a29225 bash completion for docker cp --follow-link
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 4808cc1282
Component: cli
2017-06-02 00:07:26 +00:00
706dd47168 bash completion for docker images -f dangling=false
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: b3bb4d45dd
Component: cli
2017-06-02 00:07:26 +00:00
bff99821a5 Refactor handling of key specific subcompletions
The currently used idiom for handling key specific subcompletions
did not work here: behind `docker event -f type=network `, the completion
of networks triggered. The expected behaviour is not to complete
anything here.

In order to limit the scope of the corresponding PR, the new idiom is
currently only used in `docker events --filter`.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 869890dfbd
Component: cli
2017-06-02 00:07:25 +00:00
8e4ce2fbca Support new events in bash completion
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 4e97e95cd8
Component: cli
2017-06-02 00:07:25 +00:00
9ff6318b21 Add zsh completion for 'docker network connect --link'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: cc1695f363
Component: cli
2017-06-02 00:07:25 +00:00
50f0de6561 Add zsh completion for 'docker {network connect, create, run} --ip --ip6'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 0c21ceac7e
Component: cli
2017-06-02 00:07:25 +00:00
2faed079b3 Add zsh completion for 'docker network connect --alias' and 'docker {create, run} --net-alias'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: b3b3392c97
Component: cli
2017-06-02 00:07:25 +00:00
e0b22a0cfd Add zsh completion for 'docker {attach,exec,run,start} --detach-keys'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 19f41be56b
Component: cli
2017-06-02 00:07:24 +00:00
4869557d7c Add zsh completion for 'docker network create --ipam-opt' + Reordering for better maintainability
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 7fe9c72a37
Component: cli
2017-06-02 00:07:24 +00:00
3a19e416a5 bash completion for container linking and aliasing
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 16c9a72852
Component: cli
2017-06-02 00:07:24 +00:00
bd29bc3d11 bash completion for docker network create --internal, --ipam-opt
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 09809fe27e
Component: cli
2017-06-02 00:07:24 +00:00
7bb92bc7e2 Add zsh completion for 'docker network create --internal'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 6d32fd8763
Component: cli
2017-06-02 00:07:24 +00:00
a16f13f89f Modify zsh completion for connecting/disconnecting non-running containers to networks
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 78f33c4c2b
Component: cli
2017-06-02 00:07:24 +00:00
d9137eb323 bash completion for --detach-keys
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: de6da285a3
Component: cli
2017-06-02 00:07:24 +00:00
a73814be6f Rename authz to authorization for greater clarity
Signed-off-by: Tibor Vass <tibor@docker.com>
Upstream-commit: 7f6a7ed8d1
Component: cli
2017-06-02 00:07:23 +00:00
387a498ba3 bash completion for connecting non-running containers to networks
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9c8b6e05a4
Component: cli
2017-06-02 00:07:23 +00:00
4680c89426 Add zsh completion for 'docker daemon --userns-remap'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 66cb79eb98
Component: cli
2017-06-02 00:07:23 +00:00
0ef899dd2d Add zsh completion for 'docker {build,create,run} --isolation'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 97d56a6cd8
Component: cli
2017-06-02 00:07:23 +00:00
cc265bc249 Add zsh completion for 'docker {build,create,run} --shm-size
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: 323f35256b
Component: cli
2017-06-02 00:07:23 +00:00
3d71c1c6de Add zsh completion for 'docker {create,run,update} --memory-reservation'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: c7b9b776ad
Component: cli
2017-06-02 00:07:23 +00:00
c723655c6c Add zsh completion for 'docker update' + refactoring of common options between 'build', 'create', 'run', 'update'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: a8e9d1e263
Component: cli
2017-06-02 00:07:23 +00:00
8599a275e8 bash completion for docker {build,create,run} --shm-size
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: caa120d3ca
Component: cli
2017-06-02 00:07:22 +00:00
79867c6e60 bash completion for docker update
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: effe34067f
Component: cli
2017-06-02 00:07:22 +00:00
97f4d44222 bash completion for docker daemon --cgroup-parent
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 3b7695959d
Component: cli
2017-06-02 00:07:22 +00:00
1b6d288f2e bash completion for --isolation
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 442d408fc7
Component: cli
2017-06-02 00:07:22 +00:00
3b64be09f1 Add zsh completion for 'docker daemon --cgroup-parent'
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
Upstream-commit: b65475f61a
Component: cli
2017-06-02 00:07:22 +00:00
635afa8762 Compute plugin list in bash completion for docker daemon --authz-plugin
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 9a63a5cdd6
Component: cli
2017-06-02 00:07:21 +00:00
c7196f1df6 bash completion for docker network ls --filter
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: c8195c7cd5
Component: cli
2017-06-02 00:07:21 +00:00
6751d5384e remove --format from bash completion for docker network rm
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: a36ca600a0
Component: cli
2017-06-02 00:07:21 +00:00