1
0
Fork 0

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:
Max Neunhoeffer 2016-05-06 09:02:58 +02:00
parent 642fc70082
commit 17abab2695
1 changed files with 5 additions and 1 deletions

View File

@ -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