소스 검색

fix wrong tab completion

Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
Ma Shimiao 10 년 전
부모
커밋
3bf125fce3
3개의 변경된 파일5개의 추가작업 그리고 15개의 파일을 삭제
  1. 1 1
      contrib/completion/bash/docker
  2. 1 1
      contrib/completion/fish/docker.fish
  3. 3 13
      contrib/completion/zsh/_docker

+ 1 - 1
contrib/completion/bash/docker

@@ -943,11 +943,11 @@ _docker() {
 		images
 		images
 		import
 		import
 		info
 		info
-		insert
 		inspect
 		inspect
 		kill
 		kill
 		load
 		load
 		login
 		login
+		logout
 		logs
 		logs
 		pause
 		pause
 		port
 		port

+ 1 - 1
contrib/completion/fish/docker.fish

@@ -16,7 +16,7 @@
 
 
 function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand'
 function __fish_docker_no_subcommand --description 'Test if docker has yet to be given the subcommand'
     for i in (commandline -opc)
     for i in (commandline -opc)
-        if contains -- $i attach build commit cp create diff events exec export history images import info insert inspect kill load login logout logs pause port ps pull push restart rm rmi run save search start stop tag top unpause version wait
+        if contains -- $i attach build commit cp create diff events exec export history images import info inspect kill load login logout logs pause port ps pull push rename restart rm rmi run save search start stop tag top unpause version wait
             return 1
             return 1
         end
         end
     end
     end

+ 3 - 13
contrib/completion/zsh/_docker

@@ -270,11 +270,6 @@ __docker_subcommand () {
                 {-q,--quiet}'[Only show numeric IDs]' \
                 {-q,--quiet}'[Only show numeric IDs]' \
                 ':repository:__docker_repositories'
                 ':repository:__docker_repositories'
             ;;
             ;;
-        (inspect)
-            _arguments \
-                {-f,--format=-}'[Format the output using the given go template]:template: ' \
-                '*:containers:__docker_containers'
-            ;;
         (import)
         (import)
             _arguments \
             _arguments \
                 ':URL:(- http:// file://)' \
                 ':URL:(- http:// file://)' \
@@ -282,15 +277,10 @@ __docker_subcommand () {
             ;;
             ;;
         (info)
         (info)
             ;;
             ;;
-        (import)
+        (inspect)
             _arguments \
             _arguments \
-                ':URL:(- http:// file://)' \
-                ':repository:__docker_repositories_with_tags'
-            ;;
-        (insert)
-            _arguments '1:containers:__docker_containers' \
-                       '2:URL:(http:// file://)' \
-                       '3:file:_files'
+                {-f,--format=-}'[Format the output using the given go template]:template: ' \
+                '*:containers:__docker_containers'
             ;;
             ;;
         (kill)
         (kill)
             _arguments \
             _arguments \