[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-API] [PATCH] CA-34457 tab-completion for xe subject-role-add role-name=
# HG changeset patch # User Thomas Sanders <thomas.sanders@xxxxxxxxxx> # Date 1287512032 -3600 # Node ID 1fa921ccffe9139a96582711b2067cf308f6023b # Parent 44c74d83ce54ffbf0e856e1829bb90f655ffdf64 CA-34457 tab-completion for xe subject-role-add role-name= The bash-completion file now has a section for role-name. Signed-off-by: Thomas Sanders <thomas.sanders@xxxxxxxxxx> diff --git a/ocaml/xe-cli/bash-completion b/ocaml/xe-cli/bash-completion --- a/ocaml/xe-cli/bash-completion +++ b/ocaml/xe-cli/bash-completion @@ -210,6 +210,12 @@ _xe() COMPREPLY=( $(compgen -W "monday,tuesday,wednesday,thursday,friday,saturday,sunday " -- ${LAST_VALUE}) ) return 0 ;; + role-name) + IFS=$'\n,' + LAST_VALUE=`echo ${value}|gawk 'BEGIN{FS=" "}{print $NF}'` + COMPREPLY=( $(compgen -W "vm-power-admin,vm-admin,vm-operator,read-only,pool-operator,pool-admin" -- ${LAST_VALUE}) ) + return 0 + ;; edition) # for host-apply-edition (licensing) IFS=$'\n,' COMPREPLY=( $(compgen -W "free ,enterprise ,platinum ,enterprise-xd " -- ${value}) ) Attachment:
xen-api.hg.patch _______________________________________________ xen-api mailing list xen-api@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-api
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |