From f0935d5a2342aa5b2e8b4ceefa7f39d0bb4b6b5f Mon Sep 17 00:00:00 2001 From: Paul Gilzow Date: Thu, 9 Jan 2025 12:42:47 -0600 Subject: [PATCH] corrects jq syntax for displaying carbon intensity of regions (#4321) Co-authored-by: Chad Carlson --- sites/platform/src/development/regions.md | 2 +- sites/upsun/src/development/regions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/platform/src/development/regions.md b/sites/platform/src/development/regions.md index d318a999ec..43f8fd85f3 100644 --- a/sites/platform/src/development/regions.md +++ b/sites/platform/src/development/regions.md @@ -34,7 +34,7 @@ Information on carbon intensity is also available in the {{% vendor/name %}} API For example, to get a list of the regions and their carbon intensities, run the following command: ```bash -{{% vendor/cli %}} api:curl regions | jq -r '.regions[] | select(.available) | .label + ": " + .environmental_impact.carbon_intensity' +{{% vendor/cli %}} api:curl regions | jq -r '.regions[] | select(.available) | "\(.label): \(.environmental_impact.carbon_intensity)"' ``` See all available information in the [API documentation](https://api.platform.sh/docs/#tag/Regions). diff --git a/sites/upsun/src/development/regions.md b/sites/upsun/src/development/regions.md index 4a30faa3f6..fb5004a849 100644 --- a/sites/upsun/src/development/regions.md +++ b/sites/upsun/src/development/regions.md @@ -34,7 +34,7 @@ Information on carbon intensity is also available in the {{% vendor/name %}} API For example, to get a list of the regions and their carbon intensities, run the following command: ```bash -{{% vendor/cli %}} api:curl regions | jq -r '.regions[] | select(.available != false) | .label + ": " + .environmental_impact.carbon_intensity' +{{% vendor/cli %}} api:curl regions | jq -r '.regions[] | select(.available != false) | "\(.label): \(.environmental_impact.carbon_intensity)"' ``` See all available information in the [API documentation](https://api.platform.sh/docs/#tag/Regions).