Skip to content

Commit

Permalink
Bring branding emails command under email templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Dec 2, 2022
1 parent 6f73f8b commit 1fe6f8c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/branding.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ func brandingCmd(cli *cli) *cobra.Command {
cmd.AddCommand(showBrandingCmd(cli))
cmd.AddCommand(updateBrandingCmd(cli))
cmd.AddCommand(templateCmd(cli))
cmd.AddCommand(emailTemplateCmd(cli))
cmd.AddCommand(textsCmd(cli))

return cmd
}

Expand Down Expand Up @@ -119,7 +119,7 @@ Once you close the window, you’ll be asked if you want to save the template. I

func emailTemplateCmd(cli *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "emails",
Use: "templates",
Short: "Manage custom email templates",
Long: "Manage custom email templates. This requires a custom email provider to be configured for the tenant.",
}
Expand Down
17 changes: 17 additions & 0 deletions internal/cli/email.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package cli

import (
"github.com/spf13/cobra"
)

func emailCmd(cli *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "email",
Short: "Manage email settings",
Long: "Manage email settings.",
}

cmd.AddCommand(emailTemplateCmd(cli))

return cmd
}
1 change: 1 addition & 0 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func addSubcommands(rootCmd *cobra.Command, cli *cli) {
rootCmd.AddCommand(rolesCmd(cli))
rootCmd.AddCommand(organizationsCmd(cli))
rootCmd.AddCommand(brandingCmd(cli))
rootCmd.AddCommand(emailCmd(cli))
rootCmd.AddCommand(customDomainsCmd(cli))
rootCmd.AddCommand(ipsCmd(cli))
rootCmd.AddCommand(quickstartsCmd(cli))
Expand Down

0 comments on commit 1fe6f8c

Please sign in to comment.