list_repos/
list_repos.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! List curated repositories using the async facade API.
4//!
5//! Run with: `cargo run --example list_repos -p aptu-core`
6
7use aptu_core::list_curated_repos;
8
9#[tokio::main]
10async fn main() -> anyhow::Result<()> {
11    let repos = list_curated_repos().await?;
12
13    println!("Found {} curated repositories:", repos.len());
14    for repo in &repos {
15        println!("  - {} ({})", repo.full_name(), repo.language);
16    }
17
18    Ok(())
19}