cloud_terrastodon_entrypoint 0.35.0

Main entrypoint for the Cloud Terrastodon CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
use cloud_terrastodon_azure::AzureTenantId;
use cloud_terrastodon_azure::pick_oauth2_permission_grants;

pub async fn browse_oauth2_permission_grants(tenant_id: AzureTenantId) -> eyre::Result<()> {
    let chosen = pick_oauth2_permission_grants(tenant_id).await?;
    // todo!("fix sorting by service principal clientid, add id in parens");
    // todo!("commit changes");
    println!("You chose {} items", chosen.len());
    for item in chosen {
        println!("{item:#?}");
    }
    Ok(())
}