Browse Source

fix jq pretty breakage

master
Jeff Moe 10 months ago
parent
commit
69ea9b5763
  1. 3
      eqx-get-capacity
  2. 3
      eqx-get-events
  3. 3
      eqx-get-facilities
  4. 3
      eqx-get-orgs
  5. 3
      eqx-get-os
  6. 3
      eqx-get-plans
  7. 3
      eqx-get-project-devices
  8. 6
      eqx-get-project-names
  9. 3
      eqx-get-projects
  10. 3
      eqx-get-ssh-key
  11. 3
      eqx-get-user

3
eqx-get-capacity

@ -4,6 +4,5 @@ packet \
capacity \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-events

@ -4,6 +4,5 @@ packet \
event \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-facilities

@ -4,6 +4,5 @@ packet \
facilities \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-orgs

@ -4,6 +4,5 @@ packet \
organization \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-os

@ -4,6 +4,5 @@ packet \
operating-systems \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-plans

@ -4,6 +4,5 @@ packet \
plan \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-project-devices

@ -23,6 +23,5 @@ packet \
get \
--project-id \
$EQXPROJECTID \
2>/dev/null \
| jq [.]
2>/dev/null

6
eqx-get-project-names

@ -1,5 +1,9 @@
#!/bin/bash
eqx-get-projects \
| jq --raw-output '.[] | {name}' | grep name | cut -f 2 -d ":" | sed -e 's/ //g' -e 's/"//g' | sort -V
| jq --raw-output '.[] | {name}' \
| grep name \
| cut -f 2 -d ":" \
| sed -e 's/ //g' -e 's/"//g' \
| sort -V \

3
eqx-get-projects

@ -4,6 +4,5 @@ packet \
project \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-ssh-key

@ -4,6 +4,5 @@ packet \
ssh-key \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

3
eqx-get-user

@ -4,6 +4,5 @@ packet \
user \
--json \
get \
2>/dev/null \
| jq [.]
2>/dev/null

Loading…
Cancel
Save