fix: seed attachments from command line

This commit is contained in:
Maas Lalani
2023-06-27 14:34:28 -04:00
parent bb54eb503f
commit 50e40f8cc2
3 changed files with 32 additions and 23 deletions

View File

@@ -54,10 +54,11 @@ var rootCmd = &cobra.Command{
}
p := tea.NewProgram(NewModel(resend.SendEmailRequest{
From: from,
To: to,
Subject: subject,
Text: body,
From: from,
To: to,
Subject: subject,
Text: body,
Attachments: makeAttachments(attachments),
}))
m, err := p.Run()
if err != nil {