Add 'state' commands to cli auto-complete
@@ -55,6 +55,7 @@ __splinter()
permissions
registry
role
+ state
upgrade
user
"
@@ -124,6 +125,12 @@ __splinter()
update
"
+
+ SPLINTER_STATE_OPTS="
+ $GLOBAL_OPTS
+ migrate
+ "
+
SPLINTER_UPGRADE_OPTS="
$GLOBAL_OPTS
--connect
@@ -324,6 +331,19 @@ __splinter()
esac
;;
+ state)
+ case "${prev}" in
+ migrate)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --force --yes --in --out \
+ --state-dir" -- "${cur}"))
+ ;;
+
+ *)
+ COMPREPLY=($(compgen -W "$SPLINTER_STATE_OPTS" -- "${cur}"))
+ ;;
+ esac
+ ;;
+
upgrade)
case "${prev}" in
*)
