Add 'authid' commands to cli auto-complete
@@ -46,6 +46,7 @@ __splinter()
SPLINTER_OPTS="
$GLOBAL_OPTS
--version
+ authid
cert
circuit
database
@@ -57,6 +58,16 @@ __splinter()
user
"
+ SPLINTER_AUTHID_OPTS="
+ $GLOBAL_OPTS
+ create
+ delete
+ help
+ list
+ show
+ update
+ "
+
SPLINTER_CERT_OPTS="
$GLOBAL_OPTS
generate
@@ -115,6 +126,41 @@ __splinter()
case "${subcommand}" in
+ authid)
+ case "${prev}" in
+ create)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --dry-run --quiet
+ --id-key --id-user --role" -- "${cur}"))
+ ;;
+
+ delete)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --dry-run --quiet
+ --id-key --id-user" -- "${cur}"))
+ ;;
+
+ list)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --format" \
+ -- "${cur}"))
+ ;;
+
+ show)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --format --id-key --id-user \
+ " -- "${cur}"))
+ ;;
+
+ update)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --dry-run --force \
+ --rm-all --id-key --id-user --rm-role" \
+ -- "${cur}"))
+ ;;
+
+ *)
+ COMPREPLY=($(compgen -W "$SPLINTER_AUTHID_OPTS" -- "${cur}"))
+ ;;
+
+ esac
+ ;;
+
cert)
case "${prev}" in
generate)
