From 44c4afe6dad28790637247c4becacae4e2dd4dc9 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 7 Feb 2017 00:13:28 +0000 Subject: [PATCH] bin/ovh-api --- bin/ovh-api | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/ovh-api b/bin/ovh-api index 12aa6651..89f6e3c1 100755 --- a/bin/ovh-api +++ b/bin/ovh-api @@ -63,6 +63,7 @@ if (@ARGV and $ARGV[0] =~ /^(\w+):(\w+)(?::(\w+))?$/) { } @KEY or help(); +open STDOUT,'| jq .' if $Opt{jq}; my $Api = OvhApi->new(type => OvhApi::OVH_API_EU, applicationKey => $KEY[0], applicationSecret => $KEY[1], consumerKey => $KEY[2]); # Auth @@ -376,6 +377,7 @@ $NAME - Script to query ovh's api =head1 OPTIONS + option[jq] Pipe stdout to | jq . option[sql] Produce sql to update a database option[rows|r] Print each rows of a table (eg /ip, /server, ...) option[method|m=s] Method (default: GET) -- 2.47.3