Update splinter bash completions with moved transact subcommands
Completions for "command" and "workload" were added. Completions for
still experimental features were not added.
@@ -49,6 +49,7 @@ __splinter()
authid
cert
circuit
+ command
database
help
keygen
@@ -58,6 +59,7 @@ __splinter()
state
upgrade
user
+ workload
"
SPLINTER_AUTHID_OPTS="
@@ -91,6 +93,13 @@ __splinter()
vote
"
+ SPLINTER_COMMAND_OPTS="
+ $GLOBAL_OPTS
+ get-state
+ set-state
+ show-state
+ "
+
SPLINTER_DATABASE_OPTS="
$GLOBAL_OPTS
migrate
@@ -142,6 +151,17 @@ __splinter()
list
"
+ SPLINTER_WORKLOAD_OPTS="
+ $GLOBAL_OPTS
+ --duration
+ --key
+ --seed
+ --target-rate
+ --targets
+ --update
+ --workload
+ "
+
case "${subcommand}" in
authid)
@@ -255,6 +275,26 @@ __splinter()
esac
;;
+ command)
+ case "${prev}" in
+ get-state)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --address --key --target" -- "${cur}"))
+ ;;
+
+ set-state)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --key --state-entry --target" -- "${cur}"))
+ ;;
+
+ show-state)
+ COMPREPLY=($(compgen -W "$GLOBAL_OPTS --address --key --target" -- "${cur}"))
+ ;;
+
+ *)
+ COMPREPLY=($(compgen -W "$SPLINTER_COMMAND_OPTS" -- "${cur}"))
+ ;;
+ esac
+ ;;
+
database)
case "${prev}" in
migrate)
@@ -365,6 +405,14 @@ __splinter()
esac
;;
+ workload)
+ case "${prev}" in
+ *)
+ COMPREPLY=($(compgen -W "$SPLINTER_WORKLOAD_OPTS" -- "${cur}"))
+ ;;
+ esac
+ ;;
+
*)
COMPREPLY=($(compgen -W "$SPLINTER_OPTS" -- "${cur}"))
;;
