gcloud-ctx
A Rust implementation of gcloud config configurations
for managing different gcloud configurations for Google Cloud Platform. This is the library containing the core logic
which is used to build the associated gctx command line utility.
Note: gcloud-ctx is independent and not affiliated with Google in any way.
Usage
use ;
let mut store = with_default_location?;
// create a new configuration, optionally with a force overwrite
use PropertiesBuilder;
let properties = default
.project
.account
.zone
.region
.build;
store.create?;
// list configurations
for config in store.configurations
// activate a configuration by name
store.activate?;
// get the active configuration
println!;
// copy an existing configuration, with force overwrite
store.copy?;
// rename an existing configuration, with force overwrite
store.rename?;
// delete a configuration
store.delete?;
// get properties of a configuration
let properties = store.describe?;
properties.to_writer?;
License
gcloud-ctx is distributed under the terms of the MIT license