Skip to content

Commit

Permalink
corrects jq syntax for displaying carbon intensity of regions (#4321)
Browse files Browse the repository at this point in the history
Co-authored-by: Chad Carlson <[email protected]>
  • Loading branch information
gilzow and chadwcarlson authored Jan 9, 2025
1 parent 0714ef6 commit f0935d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sites/platform/src/development/regions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion sites/upsun/src/development/regions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit f0935d5

Please sign in to comment.