Enhanced output with new features of sequencer

This commit is contained in:
2022-02-15 14:01:52 +01:00
parent dcdb6b45a3
commit 653d233586
6 changed files with 69 additions and 33 deletions

View File

@@ -182,7 +182,10 @@ step_12() {
exe service ${toolServiceName} restart
}
step_14_info() { echo "Show $toolName version running at [IP]:8008"; }
step_14_info() {
echoinfoArgs "[IP]:8008"
echo "Show $toolName version"
}
step_14_alias() { ALIAS="version"; }
step_14() {
local synapseIP=localhost
@@ -196,8 +199,9 @@ step_14() {
exep "curl -sS \"$apiCall\" | python -m json.tool | grep _version"
}
step_16_info() {
echo "List all registered users [OPTION] [IP]:8008"
step_16_info() {
echoinfoArgs "[OPTION] [IP]:8008"
echo "List all registered users"
echoinfo "[OPTION]"
echoinfo " -r : Raw json output"
}
@@ -238,12 +242,9 @@ step_18() {
step_20_info() {
shift
echoinfoArgs "[USER NAME]"
echo -n "Reset user password"
if [ -z $1 ]; then
echo " [USER NAME]"
else
echo " for $1"
fi
[ $CONTEXT_EXE -ne 0 ] && echoinfo " for $1" || echo
}
step_20_alias() { ALIAS="resetpw"; }
step_20() {
@@ -268,7 +269,8 @@ step_20() {
}
step_22_info() {
echo "List all rooms [OPTION] [IP]:8008"
echoinfoArgs "[OPTION] [IP]:8008"
echo "List all rooms"
echoinfo "[OPTION]"
echoinfo " -r : Raw json output"
}
@@ -303,7 +305,8 @@ step_22() {
}
step_24_info() {
echo "List all room members [OPTION] [ROOM ID] [IP]:8008"
echoinfoArgs "[OPTION] [ROOM ID] [IP]:8008"
echo "List all room members"
echoinfo "[OPTION]"
echoinfo " -r : Raw json output"
}
@@ -342,7 +345,11 @@ step_24() {
exep "curl -sS --header \"Authorization: Bearer $MATRIX_ACCESS\" \"$apiCall\" | python -m json.tool $grepOut"
}
step_26_info() { echo "Delete rooms without local users [IP]:8008"; }
step_26_info() {
echoinfoArgs "[IP]:8008"
echo "Delete rooms without local users"
echoinfo " [IP] : default is localhost"
}
step_26_alias() { ALIAS="purge"; }
step_26() {
adminTokenCheck
@@ -371,7 +378,8 @@ step_26() {
step_28_info() {
echo "Delete room [OPTION] <ROOM ID> [IP]:8008"
echoinfoArgs "<ROOM ID> [IP]:8008"
echo "Delete room"
}
step_28_alias() { ALIAS="deleteroom"; }
step_28() {
@@ -418,7 +426,7 @@ postDataDeleteRoom()
EOF
}
step_30_info() { echo "Debloat postgres [DATABASE]"; echo; }
step_30_info() { echoinfoArgs "[DATABASE]"; echo "Debloat postgres"; echo; }
step_30_alias() { ALIAS="debloat"; }
step_30() {
shift