feat(mail): accept multiple message IDs in delete command

Allow `gt mail delete` to accept multiple message IDs at once,
matching the existing behavior of archive, mark-read, and mark-unread.

Also adds --body as an alias for --message in mail reply.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gastown/crew/max
2026-01-21 21:19:04 -08:00
committed by Steve Yegge
parent 94c2d71c13
commit 1dc31024ca
3 changed files with 37 additions and 13 deletions

View File

@@ -80,6 +80,9 @@ func runMailThread(cmd *cobra.Command, args []string) error {
}
func runMailReply(cmd *cobra.Command, args []string) error {
if mailReplyMessage == "" {
return fmt.Errorf("required flag \"message\" or \"body\" not set")
}
msgID := args[0]
// Get message body from positional arg or flag (positional takes precedence)