Commit 75615bd3 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix bash completion for cluster copyfile/command

“copyfile” takes a file argument, so we enable file-completion for it.
“gnt-cluster command” takes a command, so we enable command completion.

Reviewed-by: imsnah
parent a2370b24
...@@ -108,6 +108,12 @@ _gnt_cluster() ...@@ -108,6 +108,12 @@ _gnt_cluster()
"queue") "queue")
COMPREPLY=( $(compgen -W "drain undrain info" -- ${cur}) ) COMPREPLY=( $(compgen -W "drain undrain info" -- ${cur}) )
;; ;;
"copyfile")
COMPREPLY=( $(compgen -f -- ${cur}) )
;;
"command")
COMPREPLY=( $(compgen -c -- ${cur}) )
;;
*) *)
;; ;;
esac esac
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment