浏览代码

Merge pull request #27856 from albers/completion-service-create--env-file

Add bash completion for `docker service create --env-file`
Vincent Demeester 8 年之前
父节点
当前提交
1462ea37d0
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      contrib/completion/bash/docker

+ 5 - 0
contrib/completion/bash/docker

@@ -2606,11 +2606,16 @@ _docker_service_update() {
 	if [ "$subcommand" = "create" ] ; then
 	if [ "$subcommand" = "create" ] ; then
 		options_with_args="$options_with_args
 		options_with_args="$options_with_args
 			--container-label
 			--container-label
+			--env-file
 			--mode
 			--mode
 			--name
 			--name
 		"
 		"
 
 
 		case "$prev" in
 		case "$prev" in
+			--env-file)
+				_filedir
+				return
+				;;
 			--mode)
 			--mode)
 				COMPREPLY=( $( compgen -W "global replicated" -- "$cur" ) )
 				COMPREPLY=( $( compgen -W "global replicated" -- "$cur" ) )
 				return
 				return