FRE-4680: Implement Milestone 2 advanced features
- Draft auto-save with configurable interval, status, and manual trigger - Email template system (save, list, use, delete templates) - Export messages to JSON, MBOX, or EML format - Import messages from JSON files - Register new commands (thread, bulk, export, import, autosave, template) - Update README.md with documentation for all new commands Build and tests pass clean. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
17
cmd/root.go
17
cmd/root.go
@@ -25,7 +25,7 @@ func newRootCmdBase() *cobra.Command {
|
||||
It provides commands for managing emails, contacts, and attachments
|
||||
with full PGP encryption support.`,
|
||||
}
|
||||
cmd.AddCommand(loginCmd())
|
||||
cmd.AddCommand(loginCmd())
|
||||
cmd.AddCommand(logoutCmd())
|
||||
cmd.AddCommand(sessionCmd())
|
||||
cmd.AddCommand(mailCmd())
|
||||
@@ -35,9 +35,12 @@ with full PGP encryption support.`,
|
||||
cmd.AddCommand(folderCmd())
|
||||
cmd.AddCommand(labelCmd())
|
||||
cmd.AddCommand(accountsCmd())
|
||||
cmd.AddCommand(webhookCmd())
|
||||
cmd.AddCommand(pgpCmd())
|
||||
cmd.AddCommand(pluginCmd())
|
||||
cmd.AddCommand(threadCmd())
|
||||
cmd.AddCommand(bulkCmd())
|
||||
cmd.AddCommand(exportCmd())
|
||||
cmd.AddCommand(importCmd())
|
||||
cmd.AddCommand(draftAutoSaveCmd())
|
||||
cmd.AddCommand(draftTemplateCmd())
|
||||
return cmd
|
||||
}
|
||||
|
||||
@@ -52,6 +55,12 @@ func NewRootCmd() *cobra.Command {
|
||||
rootCmd.AddCommand(folderCmd())
|
||||
rootCmd.AddCommand(labelCmd())
|
||||
rootCmd.AddCommand(accountsCmd())
|
||||
rootCmd.AddCommand(threadCmd())
|
||||
rootCmd.AddCommand(bulkCmd())
|
||||
rootCmd.AddCommand(exportCmd())
|
||||
rootCmd.AddCommand(importCmd())
|
||||
rootCmd.AddCommand(draftAutoSaveCmd())
|
||||
rootCmd.AddCommand(draftTemplateCmd())
|
||||
rootCmd.AddCommand(webhookCmd())
|
||||
rootCmd.AddCommand(pgpCmd())
|
||||
rootCmd.AddCommand(pluginCmd())
|
||||
|
||||
Reference in New Issue
Block a user