Browse Source

Add bash completion for experimental `docker deploy`

Signed-off-by: Harald Albers <github@albersweb.de>
Harald Albers 8 years ago
parent
commit
10f567ec6a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      contrib/completion/bash/docker

+ 5 - 0
contrib/completion/bash/docker

@@ -1882,6 +1882,10 @@ _docker_daemon() {
 	esac
 	esac
 }
 }
 
 
+_docker_deploy() {
+	__docker_is_experimental && _docker_stack_deploy
+}
+
 _docker_diff() {
 _docker_diff() {
 	_docker_container_diff
 	_docker_container_diff
 }
 }
@@ -3865,6 +3869,7 @@ _docker() {
 	)
 	)
 
 
 	local experimental_commands=(
 	local experimental_commands=(
+		deploy
 	)
 	)
 
 
 	# These options are valid as global options for all client commands
 	# These options are valid as global options for all client commands