From 17abab2695157871dda1850c679d2bb7c2e6c663 Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Fri, 6 May 2016 09:02:58 +0200 Subject: [PATCH] Improve functionality of scripts/dumpAgency.sh You can now say for example: scripts/dumpAgency.sh .[0].arango.Plan.Collections with the obvious meaning. --- scripts/dumpAgency.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/dumpAgency.sh b/scripts/dumpAgency.sh index a035c6059f..87518b260b 100755 --- a/scripts/dumpAgency.sh +++ b/scripts/dumpAgency.sh @@ -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