From 9e6c747c094f87cf1d45753dc2482a5276536c44 Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sat, 30 Jan 2021 16:48:07 -0700 Subject: [PATCH] make eqx-get-* more pretty with jq --- eqx-get-capacity | 3 ++- eqx-get-events | 3 ++- eqx-get-facilities | 5 +++-- eqx-get-orgs | 3 ++- eqx-get-os | 3 ++- eqx-get-plans | 3 ++- eqx-get-project-devices | 3 ++- eqx-get-projects | 3 ++- eqx-get-ssh-key | 3 ++- eqx-get-user | 3 ++- 10 files changed, 21 insertions(+), 11 deletions(-) diff --git a/eqx-get-capacity b/eqx-get-capacity index 8ba3675..d73c4af 100755 --- a/eqx-get-capacity +++ b/eqx-get-capacity @@ -4,5 +4,6 @@ packet \ capacity \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-events b/eqx-get-events index feed88c..b3b100e 100755 --- a/eqx-get-events +++ b/eqx-get-events @@ -4,5 +4,6 @@ packet \ event \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-facilities b/eqx-get-facilities index 5fcfc5e..1a6225e 100755 --- a/eqx-get-facilities +++ b/eqx-get-facilities @@ -3,6 +3,7 @@ packet \ facilities \ --json \ - get - 2>/dev/null + get \ + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-orgs b/eqx-get-orgs index 725fed1..9d90b6c 100755 --- a/eqx-get-orgs +++ b/eqx-get-orgs @@ -4,5 +4,6 @@ packet \ organization \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-os b/eqx-get-os index b5f9664..5caafe0 100755 --- a/eqx-get-os +++ b/eqx-get-os @@ -4,5 +4,6 @@ packet \ operating-systems \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-plans b/eqx-get-plans index 05a8734..f689d3d 100755 --- a/eqx-get-plans +++ b/eqx-get-plans @@ -4,5 +4,6 @@ packet \ plan \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-project-devices b/eqx-get-project-devices index d8f9b77..be0e72b 100755 --- a/eqx-get-project-devices +++ b/eqx-get-project-devices @@ -23,5 +23,6 @@ packet \ get \ --project-id \ $EQXPROJECTID \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-projects b/eqx-get-projects index 8cf917b..431a6f8 100755 --- a/eqx-get-projects +++ b/eqx-get-projects @@ -4,5 +4,6 @@ packet \ project \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-ssh-key b/eqx-get-ssh-key index 0617c50..68ac90c 100755 --- a/eqx-get-ssh-key +++ b/eqx-get-ssh-key @@ -4,5 +4,6 @@ packet \ ssh-key \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.] diff --git a/eqx-get-user b/eqx-get-user index 5e78c2e..91de817 100755 --- a/eqx-get-user +++ b/eqx-get-user @@ -4,5 +4,6 @@ packet \ user \ --json \ get \ - 2>/dev/null + 2>/dev/null \ + | jq [.]