and silence

This commit is contained in:
Q
2023-08-20 11:56:49 +03:00
parent 0c097e52e1
commit c083d168db

View File

@@ -50,7 +50,7 @@ _update_client() {
} }
_list() { _list() {
curl -fL -w "\n" -s -H "Secret: $MFL_TOKEN" "$MFL_ROOTURL"/ls curl -fL -s -w "\n" -s -H "Secret: $MFL_TOKEN" "$MFL_ROOTURL"/ls
} }
_write() { _write() {
@@ -127,25 +127,25 @@ _write_stdin() { # name
_delete() { # name _delete() { # name
read -p "Sure to delete: $1 ? Break to exit " foo read -p "Sure to delete: $1 ? Break to exit " foo
curl -fL -w "\n" \ curl -fL -s -w "\n" \
-H "Secret: $MFL_TOKEN" \ -H "Secret: $MFL_TOKEN" \
"$MFL_ROOTURL"/delete/"$1" "$MFL_ROOTURL"/delete/"$1"
} }
_details() { # name _details() { # name
curl -fL -w "\n" \ curl -fL -s -w "\n" \
-H "Secret: $MFL_TOKEN" \ -H "Secret: $MFL_TOKEN" \
"$MFL_ROOTURL"/details/"$1" "$MFL_ROOTURL"/details/"$1"
} }
_simple_list() { _simple_list() {
curl -fL -w "\n" \ curl -fL -s -w "\n" \
-H "Secret: $MFL_TOKEN" \ -H "Secret: $MFL_TOKEN" \
"$MFL_ROOTURL"/ls-simple "$MFL_ROOTURL"/ls-simple
} }
_maintain() { _maintain() {
curl -fL -w "\n" \ curl -fL -s -w "\n" \
-H "Secret: $MFL_TOKEN" \ -H "Secret: $MFL_TOKEN" \
"$MFL_ROOTURL"/maintenance "$MFL_ROOTURL"/maintenance
} }