fix: use bd mail instead of bd message

The bd CLI renamed 'message' subcommand to 'mail'. Updated gt mail
to call the correct bd subcommand, and fixed body to use -m flag
instead of positional argument.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-18 19:42:37 -08:00
parent 915594c44c
commit 400ff55419
2 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -31,9 +31,10 @@ func (r *Router) Send(msg *Message) error {
toIdentity := addressToIdentity(msg.To)
fromIdentity := addressToIdentity(msg.From)
// Build command: bd message send <recipient> <body> -s <subject>
args := []string{"message", "send", toIdentity, msg.Body,
// Build command: bd mail send <recipient> -s <subject> -m <body>
args := []string{"mail", "send", toIdentity,
"-s", msg.Subject,
"-m", msg.Body,
}
// Add importance flag for high priority