Commit Graph

681 Commits

Author SHA1 Message Date
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
5a9900c580 Refactor use of shared completion functions
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5288b7e7fd
Component: cli
2017-06-02 00:10:52 +00:00
3f713f4c69 Add bash completion for {dockerd,docker run} --log-opt max-buffer-size|mode
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: e49d13fc02
Component: cli
2017-06-02 00:10:52 +00:00
69fb91c724 Add bash completion for docker checkpoint
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: a4ce26ba47
Component: cli
2017-06-02 00:10:52 +00:00
daeec5c32c Allow adding rules to cgroup devices.allow on container create/run
This introduce a new `--device-cgroup-rule` flag that allow a user to
add one or more entry to the container cgroup device `devices.allow`

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: e9ad0f345f
Component: cli
2017-06-02 00:10:51 +00:00
207d59a349 Update bash and zsh completion for service create/update --read-only
This commit updates bash and zsh completion for flag `--read-only`
in `service create/update`.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: 2fade897b9
Component: cli
2017-06-02 00:10:51 +00:00
bc0808e976 Add bash completion for docker service logs
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: bdf88a6e67
Component: cli
2017-06-02 00:10:51 +00:00
f164989143 Update bash and zsh completion for aws-create-group
This commit updates bash and zsh completion for aws-create-group.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Upstream-commit: a4acd7887f
Component: cli
2017-06-02 00:10:51 +00:00
cf17bf7d66 Use native call for listing plugins in bash completion
`docker plugin ls` now has `--format`, so there is no more need for
postprocessing raw `docker plugin ls` output with `awk` any more.
This will make generation of plugin lists robust against changes
in `docker plugin ls` output.

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: f38bb95619
Component: cli
2017-06-02 00:10:51 +00:00
7951ee4996 Rename helper function in bash completion for consistency
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: a88fb3678d
Component: cli
2017-06-02 00:10:50 +00:00
c3c790c8f5 Hide bash completion for docker run|create|build --isolation on non-windows
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 3494343b71
Component: cli
2017-06-02 00:10:50 +00:00
2368812ef3 Add windows specific bash completion for docker run|create
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: d9dbe8b6f6
Component: cli
2017-06-02 00:10:50 +00:00
6c66c6e604 Fix bash completion for completing nodes
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 5f791f6b6a
Component: cli
2017-06-02 00:10:50 +00:00