You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
449 B
Plaintext
14 lines
449 B
Plaintext
export def configurations []: [
|
|
nothing -> table<record<name: string active: bool account: string zone: string region: string>>
|
|
] {
|
|
gcloud config configurations list
|
|
| detect columns
|
|
| rename name active account project zone region
|
|
| each { update active { $in == True } }
|
|
}
|
|
|
|
# get the current project as defined gcloud
|
|
export def "current project" []: nothing -> string {
|
|
gcloud config list --format="value(core.project)"
|
|
}
|