Add 'role' commands to cli auto-complete
@@ -54,6 +54,7 @@ __splinter()
keygen
permissions
registry
+ role
upgrade
user
"
@@ -113,6 +114,16 @@ __splinter()
build
"
+ SPLINTER_ROLE_OPTS="
+ $GLOBAL_OPTS
+ create
+ delete
+ help
+ list
+ show
+ update
+ "
+
SPLINTER_UPGRADE_OPTS="
$GLOBAL_OPTS
--connect
@@ -278,6 +289,41 @@ __splinter()
esac
;;
+ role)
+ case "${prev}" in
+ create)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --dry-run --quiet
+ --display --permission --key --url" -- "${cur}"))
+ ;;
+
+ delete)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --dry-run --quiet
+ --key --url" -- "${cur}"))
+ ;;
+
+ list)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --format --key --url" \
+ -- "${cur}"))
+ ;;
+
+ show)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --format --key --url \
+ " -- "${cur}"))
+ ;;
+
+ update)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --dry-run --force \
+ --add-perm --display --key --rm-perm --url" \
+ -- "${cur}"))
+ ;;
+
+ *)
+ COMPREPLY=($(compgen -W "$SPLINTER_ROLE_OPTS" -- "${cur}"))
+ ;;
+
+ esac
+ ;;
+
upgrade)
case "${prev}" in
*)
