git_github/focus.rs
1use crate::git;
2use std::env;
3use std::error::Error;
4
5pub fn list_issues(_remote_name: &str) -> Result<(), Box<dyn Error>> {
6 let path = env::current_dir().map_err(|_| "Failed to get current directory")?;
7 let repo = git::Repo::new(&path);
8 let rt = tokio::runtime::Runtime::new()?;
9 let issues = rt.block_on(async { repo.issues().await })?;
10 for issue in issues {
11 println!("{:?}", issue.title);
12 }
13 Ok(())
14}