feat: add CC and BCC inputs if --cc or --bcc is specified. (#65)

This commit adds CC + BCC hidden inputs and are shown if the user passes
in some value to the `-cc` or `--bcc` flags.
This commit is contained in:
Maas Lalani
2024-04-25 11:18:45 -04:00
committed by GitHub
parent ef84570048
commit 7f2ec5e5df
3 changed files with 79 additions and 3 deletions

View File

@@ -138,6 +138,8 @@ var rootCmd = &cobra.Command{
p := tea.NewProgram(NewModel(resend.SendEmailRequest{
From: from,
To: to,
Bcc: bcc,
Cc: cc,
Subject: subject,
Text: body,
Attachments: makeAttachments(attachments),