Skip to content

Commit 8a76328

Browse files
thomassamatthiasgoergens
authored andcommitted
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 <[email protected]>
1 parent de52856 commit 8a76328

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ocaml/xe-cli/bash-completion

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,12 @@ _xe()
210210
COMPREPLY=( $(compgen -W "monday,tuesday,wednesday,thursday,friday,saturday,sunday " -- ${LAST_VALUE}) )
211211
return 0
212212
;;
213+
role-name)
214+
IFS=$'\n,'
215+
LAST_VALUE=`echo ${value}|gawk 'BEGIN{FS=" "}{print $NF}'`
216+
COMPREPLY=( $(compgen -W "vm-power-admin,vm-admin,vm-operator,read-only,pool-operator,pool-admin" -- ${LAST_VALUE}) )
217+
return 0
218+
;;
213219
edition) # for host-apply-edition (licensing)
214220
IFS=$'\n,'
215221
COMPREPLY=( $(compgen -W "free ,enterprise ,platinum ,enterprise-xd " -- ${value}) )

0 commit comments

Comments
 (0)