feat(#1315): hive-forge attachment-get verb - download attachments by uuid or url

This commit is contained in:
damocles 2026-06-04 21:35:21 +02:00 committed by mara
commit 98f96e5435
6 changed files with 118 additions and 3 deletions

View file

@ -99,6 +99,9 @@ enum Verb {
AttachIssue(verbs::attach::IssueArgs),
/// Upload a file as an attachment to a comment.
AttachComment(verbs::attach::CommentArgs),
/// Download an attachment by UUID or URL. Saves to a temp file and
/// prints the path (pass `-o -` to stream raw bytes to stdout).
AttachmentGet(verbs::attachment_get::Args),
}
fn main() -> Result<()> {
@ -129,5 +132,6 @@ fn main() -> Result<()> {
Verb::Timeline(a) => verbs::timeline::run(&client, a),
Verb::AttachIssue(a) => verbs::attach::run_issue(&client, a),
Verb::AttachComment(a) => verbs::attach::run_comment(&client, a),
Verb::AttachmentGet(a) => verbs::attachment_get::run(&client, a),
}
}