From 2b14fd22bc945e57cad16210f50095ffa3704183 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea Date: Fri, 2 Dec 2022 17:34:05 +0100 Subject: [PATCH] Update examples for auth0 email templates cmd --- internal/cli/branding.go | 13 ------------- internal/cli/email_templates.go | 21 +++++++++++++++++---- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/internal/cli/branding.go b/internal/cli/branding.go index c05da7d3d..5010123be 100644 --- a/internal/cli/branding.go +++ b/internal/cli/branding.go @@ -117,19 +117,6 @@ Once you close the window, you’ll be asked if you want to save the template. I return cmd } -func emailTemplateCmd(cli *cli) *cobra.Command { - cmd := &cobra.Command{ - Use: "templates", - Short: "Manage custom email templates", - Long: "Manage custom email templates. This requires a custom email provider to be configured for the tenant.", - } - - cmd.SetUsageTemplate(resourceUsageTemplate()) - cmd.AddCommand(showEmailTemplateCmd(cli)) - cmd.AddCommand(updateEmailTemplateCmd(cli)) - return cmd -} - func showBrandingCmd(cli *cli) *cobra.Command { cmd := &cobra.Command{ Use: "show", diff --git a/internal/cli/email_templates.go b/internal/cli/email_templates.go index 951178c0e..ab05228f0 100644 --- a/internal/cli/email_templates.go +++ b/internal/cli/email_templates.go @@ -96,6 +96,19 @@ var ( } ) +func emailTemplateCmd(cli *cli) *cobra.Command { + cmd := &cobra.Command{ + Use: "templates", + Short: "Manage custom email templates", + Long: "Manage custom email templates. This requires a custom email provider to be configured for the tenant.", + } + + cmd.SetUsageTemplate(resourceUsageTemplate()) + cmd.AddCommand(showEmailTemplateCmd(cli)) + cmd.AddCommand(updateEmailTemplateCmd(cli)) + return cmd +} + func showEmailTemplateCmd(cli *cli) *cobra.Command { var inputs struct { Template string @@ -106,8 +119,8 @@ func showEmailTemplateCmd(cli *cli) *cobra.Command { Args: cobra.MaximumNArgs(1), Short: "Show an email template", Long: "Show an email template.", - Example: `auth0 branding emails show