kvs tools
This commit is contained in:
parent
657a1b38e3
commit
d072d29fba
13
kvs_delete
Executable file
13
kvs_delete
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source $(dirname $0)/shelly.conf
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "usage: $0 <key> <value>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
key=$1
|
||||||
|
|
||||||
|
curl -s $SHELLY_RPC/KVS.Delete'?key="'$key'"' | jq .
|
||||||
|
|
6
kvs_list
Executable file
6
kvs_list
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source $(dirname $0)/shelly.conf
|
||||||
|
|
||||||
|
curl -s $SHELLY_RPC/KVS.GetMany'?key="*"' | jq .
|
||||||
|
|
Loading…
Reference in New Issue
Block a user