feat: email tui

This commit is contained in:
Maas Lalani
2023-06-13 23:31:19 -04:00
parent 2c740644ee
commit 5c247b107d
9 changed files with 533 additions and 0 deletions

29
main.go Normal file
View File

@@ -0,0 +1,29 @@
package main
import (
"os"
tea "github.com/charmbracelet/bubbletea"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "email",
Short: "email is a command line interface for sending emails.",
Long: `email is a command line interface for sending emails.`,
RunE: func(cmd *cobra.Command, args []string) error {
p := tea.NewProgram(NewModel())
_, err := p.Run()
if err != nil {
return err
}
return nil
},
}
func main() {
err := rootCmd.Execute()
if err != nil {
os.Exit(1)
}
}