ghpending 0.1.1

CLI to watch GitHub repos for open issues and pull requests at a glance
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::config;
use anyhow::Result;

pub fn run() -> Result<()> {
    let cfg = config::load()?;
    if cfg.repos.is_empty() {
        println!("No repos tracked. Run `ghpending add` to get started.");
    } else {
        for repo in &cfg.repos {
            println!("{repo}");
        }
    }
    Ok(())
}