cloud_terrastodon_command 0.35.1

Command running helpers for the Cloud Terrastodon project
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use cloud_terrastodon_command::CommandBuilder;
use cloud_terrastodon_command::CommandKind;
use serde_json::Value;

#[tokio::main]
pub async fn main() -> eyre::Result<()> {
    let resource_groups = CommandBuilder::new(CommandKind::AzureCLI)
        .args(["group", "list"])
        .run::<Vec<Value>>()
        .await?;
    println!("Found {} resource groups", resource_groups.len());
    Ok(())
}