mirror of https://gitee.com/bigwinds/arangodb
Improve functionality of scripts/dumpAgency.sh
You can now say for example: scripts/dumpAgency.sh .[0].arango.Plan.Collections with the obvious meaning.
This commit is contained in:
parent
642fc70082
commit
17abab2695
|
@ -1,2 +1,6 @@
|
|||
#!/bin/bash
|
||||
curl -X POST http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
|
||||
if [ "$*" == "" ] ; then
|
||||
curl -s X POST http://localhost:4001/_api/agency/read -d '[["/"]]' | jq .
|
||||
else
|
||||
curl -s -X POST http://localhost:4001/_api/agency/read -d '[["/"]]' | jq $*
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue