Commit Graph

592 Commits

Author SHA1 Message Date
2ac475cf97 Add bash completion for manifest command family
Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit 0fb4256a00)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-11-29 17:15:06 +01:00
2a36695037 Add support for experimental cli features to bash completion
This is needed for implementing bash completion for the `docker manifest`
command family.

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit a183c952c6)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-11-29 17:15:04 +01:00
dc74fc81f2 Refactor usage of docker version in bash completion
This preapares bash completion for more context sensitivity:

- experimental cli features
- orchestrator specific features

Also renames _daemon_ to _server_ where used in context of `docker version`
because the fields there are grouped unter _Server_.

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit 564d4da06e)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-11-29 17:15:02 +01:00
046ffa4e87 Fix bash completion for service update --force
- `--force` is not available in `service create`
- `--force` is a boolean option

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit 5fa5eb1da6)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-11-20 18:18:33 +01:00
587a94c935 Global Default Address Pool feature support
This feature brings new attribute/option for swarm init command.
default-addr-pool will take string input which can be in below format.
"CIDR,CIDR,CIDR...:SUBNET-SIZE".
Signed-off-by: selansen <elango.siva@docker.com>
2018-08-21 14:34:00 -04:00
b5768bea9b Merge pull request #1271 from albers/completion-shellcheck
Fix shellcheck warnings
2018-08-04 01:36:36 +02:00
e8cd06c8eb Merge pull request #1269 from albers/completion-cp--archive
Add bash completion for `cp --archive`
2018-08-03 23:48:52 +02:00
e587ec293b Fix shellcheck warnings
Signed-off-by: Harald Albers <github@albersweb.de>
2018-08-03 15:28:09 +02:00
7b4e2f3145 bash completion: fix uncorrect completion
fix uncorrect completion for command
docker docker <tab>

Signed-off-by: Ace-Tang <aceapril@126.com>
2018-08-03 21:27:27 +08:00
b9b3754ad3 Add bash completion for cp --archive
Signed-off-by: Harald Albers <github@albersweb.de>
2018-08-03 14:30:30 +02:00
08f8ee1320 Add bash completion for kubernetes orchestrator
Signed-off-by: Harald Albers <github@albersweb.de>
2018-08-02 13:54:31 +02:00
8ef01e869e Only complete swarm specific options with orchestrator=swarm
Signed-off-by: Harald Albers <github@albersweb.de>
2018-08-02 13:54:31 +02:00
ff953751d3 Add support for orchestrator specific bash completions
Signed-off-by: Harald Albers <github@albersweb.de>
2018-08-02 13:54:31 +02:00
08f5f52cdc Merge pull request #1215 from albers/completion-service-logs-options
Add bash completion for `service logs --details|--raw`
2018-07-31 22:25:36 +02:00
c922ea2f45 Added events filter scope bash completion
Signed-off-by: Paweł Szczekutowicz <pszczekutowicz@gmail.com>
2018-07-20 15:37:49 +02:00
4912846de2 Add bash completion for service logs --details|--raw
Signed-off-by: Harald Albers <github@albersweb.de>
2018-07-16 18:46:06 +02:00
97d312e02a Add bash completion for service create|update --init
Signed-off-by: Harald Albers <github@albersweb.de>
2018-07-13 09:05:29 +02:00
3991b2fae3 Merge pull request #1158 from albers/completion-dockerd--default-address-pool
Add bash completion for `dockerd --default-address-pool`
2018-06-29 11:48:43 +02:00
8443982188 Add bash completion for exec_die event
Signed-off-by: Harald Albers <github@albersweb.de>
2018-06-29 11:20:23 +02:00
0e6d9dfe85 Add bash completion for dockerd --default-address-pool
Signed-off-by: Harald Albers <github@albersweb.de>
2018-06-29 11:11:24 +02:00
43024e2d57 Add bash completion for secret|config create --template-driver
Signed-off-by: Harald Albers <github@albersweb.de>
2018-04-14 14:46:19 +02:00
2a6808db87 Bash: update trust completions
The `docker trust` commands were moved out of experimental,
and the `docker trust view` command was changed to
`docker trust inspect --pretty`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2018-03-14 01:21:33 +01:00
fb80101ca7 Add swarm types to bash completion event type filter
Signed-off-by: Trapier Marshall <trapier.marshall@docker.com>
2018-02-19 13:46:23 -05:00
26a2a45967 Merge pull request #682 from albers/completion-service-options
Fix and simplify bash completion for service env, mounts and labels
2018-02-01 14:02:51 -08:00
4586609f71 Merge pull request #717 from albers/completion-images-2
Improve and fix bash completion for images
2018-01-27 17:48:49 -08:00
e2f73bb4b7 Fix bash completion for "docker swarm"
Signed-off-by: muicoder <muicoder@gmail.com>
2018-01-01 12:58:16 +08:00
718a245b6e Merge pull request #713 from albers/completion-512
Fix #512 Bash autocompletion works incorrect with inspect
2017-12-15 16:33:41 -05:00
f2b42bb6a8 Simplify bash completion for service options
Previously, the completions for `--xxx` and the corresponding
`-xxx-add` and `-xxx-rm` options were defined in separate blocks.
This caused a lot of duplicated code.

This PR removes duplication for xxx=config|group|host|placement-pref|secret.

Now the blocks for `create` and `update` only contain completions for
options that either only exist for the particular command or are specific
to it (completions for `--env-rm` and `--env|env-add` differ).

Signed-off-by: Harald Albers <github@albersweb.de>
2017-12-15 13:49:42 +01:00
d149c93c0c Fix bash completion for service env, mounts and labels
`service create` and `service update` both used to have `--env`, `--label`
and `--mount` options.
These options now are only valid for `service create`.
`service update` got corresponding `--xxx-add|rm` options instead.

Signed-off-by: Harald Albers <github@albersweb.de>
2017-12-15 13:49:42 +01:00
8684b99923 Merge pull request #749 from albers/completion--generic-resource
Add support for generic resources to bash completion
2017-12-15 01:08:42 -08:00
8ec80eec67 Add support for generic resources to bash completion
Adds bash completion for
- `service create --generic-resource`
- `service update --generic-resource-(add|rm)`
- `dockerd --node-generic-resource`

Signed-off-by: Harald Albers <github@albersweb.de>
2017-12-15 08:56:14 +01:00
a119e39f0c Update docs and completion-scripts for deprecated features
- the `--disable-legacy-registry` daemon flag was removed
- duplicate keys with conflicting values for engine labels
  now produce an error instead of a warning.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-12-12 17:09:38 -08:00
8053cf67e0 Merge pull request #726 from albers/completion-log-opt-line-only
Add bash completion for `--log-opt line-only`
2017-12-06 16:04:26 -08:00
86653f4d57 Merge pull request #732 from ndeloof/8917
closes #8917 introduce `—workdir` option for docker exec
2017-12-06 10:51:33 -08:00
da6b8cb5de Because the option takes an argument, a special treatment is required in the preceding case
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2017-12-06 17:24:01 +01:00
591a1273fd introduce —workdir option for docker exec
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2017-12-06 17:24:01 +01:00
ea854237aa Merge pull request #724 from dungeonmaster18/723-auto-complete-command
Added auto complete command for fluentd-sub-second-precision.
2017-12-05 10:29:39 -08:00
83cdc0f1bd Merge pull request #704 from albers/completion--platform
Add bash completion for `--platform`
2017-12-04 13:19:37 -08:00
0798d71f38 Add bash completion for --log-opt line-only
Signed-off-by: Harald Albers <github@albersweb.de>
2017-12-04 10:05:37 +01:00
53376b60c6 Minor bash completion improvements/fixes
Signed-off-by: Harald Albers <github@albersweb.de>
2017-12-04 09:33:14 +01:00
5ee3b9b461 Improve bash completion for images
Signed-off-by: Harald Albers <github@albersweb.de>
2017-12-04 09:33:14 +01:00
d5271568a2 Added auto complete command for fluentd-sub-second-precision
Signed-off-by: dungeonmaster18 <umesh4257@gmail.com>
2017-12-01 18:39:41 +05:30
a2d0b6e122 Fix #512 Bash autocompletion works incorrect with inspect
Signed-off-by: Harald Albers <github@albersweb.de>
2017-11-30 17:28:33 +01:00
b45a49c83f Merge pull request #702 from albers/completion-log--until
Add bash completion for `logs --until`
2017-11-30 09:40:08 +01:00
15f78417b9 Add bash completion for --platform
Signed-off-by: Harald Albers <github@albersweb.de>
2017-11-30 09:29:15 +01:00
4f009541cb Merge pull request #677 from albers/completion-log-opts
Add new log driver options to bash completion
2017-11-29 10:01:19 -08:00
c428561b63 Merge pull request #678 from albers/completion-build--stream
Add bash completion for experimental `build --stream`
2017-11-29 10:00:23 -08:00
667dead8b7 Add bash completion for logs --until
Signed-off-by: Harald Albers <github@albersweb.de>
2017-11-17 18:45:05 +01:00
c29459c284 Add bash completion for trust sign --local
Signed-off-by: Harald Albers <github@albersweb.de>
2017-11-17 18:30:38 +01:00
47cf2ea683 Add isolation mode on service update/create and compose files
Signed-off-by: Simon Ferquel <simon.ferquel@docker.com>
2017-11-17 15:31:13 +01:00