website/docs/segments/cloud/gcp.mdx
Display the currently active GCP project, region and account
import Config from "@site/src/components/Config.js";
<Config data={{ type: "gcp", style: "powerline", powerline_symbol: "\uE0B0", foreground: "#ffffff", background: "#47888d", template: " \udb84\uddf6 {{.Project}} :: {{.Account}} ", }} />
:::note default template
{{ if .Error }}{{ .Error }}{{ else }}{{ .Project }}{{ end }}
:::
| Name | Type | Description |
|---|---|---|
.Project | string | the currently active project |
.Account | string | the currently active account |
.Region | string | default region for the active context |
.ActiveConfig | string | the active configuration name |
.Error | string | contains any error messages generated when trying to load the GCP config |