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

@@ -127,6 +127,10 @@ func NewModel(defaults resend.SendEmailRequest) Model {
attachments.SetStatusBarItemName("attachment", "attachments")
attachments.SetShowPagination(false)
for _, a := range defaults.Attachments {
attachments.InsertItem(0, attachment(a.Filename))
}
picker := filepicker.New()
picker.CurrentDirectory, _ = os.UserHomeDir()