[sheepdog] [PATCH] update bash completion file for collie

Liu Yuan namei.unix at gmail.com
Mon Jul 9 04:45:13 CEST 2012


On 07/08/2012 03:37 PM, MORITA Kazutaka wrote:
> Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
> ---
>  script/bash_completion_collie |   16 +++++++++++++---
>  1 file changed, 13 insertions(+), 3 deletions(-)
> 
> diff --git a/script/bash_completion_collie b/script/bash_completion_collie
> index e96471c..20701e2 100644
> --- a/script/bash_completion_collie
> +++ b/script/bash_completion_collie
> @@ -148,7 +148,7 @@ _collie_vdi_setattr()
>  _collie_cluster()
>  {
>      local opts
> -    opts="info format shutdown recover"
> +    opts="info format shutdown recover snapshot cleanup"
>  
>      case "$1" in
>          info)
> @@ -161,6 +161,10 @@ _collie_cluster()
>          recover)
>              _collie_cluster_recover
>              ;;
> +        snapshot)
> +            ;;
> +        cleanup)
> +            ;;
>          "")
>              COMPREPLY=($( compgen \
>                  -W "${opts}" \
> @@ -175,13 +179,15 @@ _collie_cluster()
>  _collie_node()
>  {
>      local opts
> -    opts="info list"
> +    opts="info list recovery"
>  
>      case "$1" in
>          info)
>              ;;
>          list)
>              ;;
> +        recovery)
> +            ;;
>          "")
>              COMPREPLY=($( compgen \
>                  -W "${opts}" \
> @@ -197,7 +203,7 @@ _collie_vdi()
>  {
>      local opts
>      opts="create snapshot clone resize read write \
> -list tree graph delete object setattr getattr"
> +list tree graph delete object setattr getattr track check"
>  
>      case "$1" in
>  	create)
> @@ -233,6 +239,10 @@ list tree graph delete object setattr getattr"
>              ;;
>          getattr)
>              ;;
> +        track)
> +            ;;
> +        check)
> +            ;;
>          "")
>              COMPREPLY=($( compgen \
>                  -W "${opts}" \
> 

Applied, thanks.

Yuan




More information about the sheepdog mailing list