fix: use correct bd mail send syntax

This commit is contained in:
Steve Yegge
2025-12-18 14:27:23 -08:00
parent cf895aaa11
commit ed64ab44ff
2 changed files with 15 additions and 11 deletions

View File

@@ -264,11 +264,10 @@ Check gt mail inbox for messages received during transition.
`, time.Now().Format(time.RFC3339), role)
}
// Send via bd mail
cmd := exec.Command("bd", "mail", "send",
"--to", selfAddr,
"--subject", subject,
"--body", body,
// Send via bd mail (syntax: bd mail send <recipient> -s <subject> -m <body>)
cmd := exec.Command("bd", "mail", "send", selfAddr,
"-s", subject,
"-m", body,
)
cmd.Dir = townRoot
@@ -296,11 +295,10 @@ Time: %s
Please verify state and execute lifecycle action.
`, role, action, time.Now().Format(time.RFC3339))
// Send via bd mail
cmd := exec.Command("bd", "mail", "send",
"--to", manager,
"--subject", subject,
"--body", body,
// Send via bd mail (syntax: bd mail send <recipient> -s <subject> -m <body>)
cmd := exec.Command("bd", "mail", "send", manager,
"-s", subject,
"-m", body,
)
cmd.Dir = townRoot