include tags in ent show #29

Merged
sigil-03 merged 2 commits from ent-show-tags into main 2025-07-20 12:38:03 -06:00
Showing only changes of commit 0d9a893087 - Show all commits

View file

@ -285,8 +285,9 @@ fn handle_command(
Commands::Show { issue_id } => { Commands::Show { issue_id } => {
let issues = entomologist::database::read_issues_database(issues_database_source)?; let issues = entomologist::database::read_issues_database(issues_database_source)?;
match issues.get_issue(issue_id) { let Some(issue) = issues.get_issue(issue_id) else {

i'm really liking this pattern 👀

i'm really liking this pattern 👀
Some(issue) => { return Err(anyhow::anyhow!("issue {} not found", issue_id));
};
println!("issue {}", issue_id); println!("issue {}", issue_id);
println!("author: {}", issue.author); println!("author: {}", issue.author);
println!("creation_time: {}", issue.creation_time); println!("creation_time: {}", issue.creation_time);
@ -311,11 +312,6 @@ fn handle_command(
println!("{}", comment.description); println!("{}", comment.description);
} }
} }
None => {
return Err(anyhow::anyhow!("issue {} not found", issue_id));
}
}
}
Commands::State { Commands::State {
issue_id, issue_id,