dot-files/dot_config/nushell/lib/inspect/gcloud.nu

9 lines
295 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 } }
}