From d03f0b86c375274b6418625267a5f2fbd02fe9ad Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Thu, 19 Dec 2024 10:27:31 +0530 Subject: [PATCH] Add examples for ul customize --- docs/auth0_universal-login_customize.md | 5 +++++ internal/cli/universal_login_customize.go | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/auth0_universal-login_customize.md b/docs/auth0_universal-login_customize.md index 6e211fb7..24970016 100644 --- a/docs/auth0_universal-login_customize.md +++ b/docs/auth0_universal-login_customize.md @@ -29,6 +29,11 @@ auth0 universal-login customize [flags] ``` auth0 universal-login customize auth0 ul customize + auth0 ul customize --rendering-mode standard + auth0 ul customize -r standard + auth0 ul customize --rendering-mode advanced --prompt login-id --screen login-id + auth0 ul customize --rendering-mode advanced --prompt login-id --screen login-id --settings-file settings.json + auth0 ul customize -r advanced -p login-id -s login-id -f settings.json ``` diff --git a/internal/cli/universal_login_customize.go b/internal/cli/universal_login_customize.go index a80761da..4caf84fc 100644 --- a/internal/cli/universal_login_customize.go +++ b/internal/cli/universal_login_customize.go @@ -245,7 +245,12 @@ func customizeUniversalLoginCmd(cli *cli) *cobra.Command { "Choosing Advanced mode will open the default terminal editor, with the rendering configs:\n\n" + "![storybook](settings.json)\n\nClosing the terminal editor will save the settings to your tenant.", Example: ` auth0 universal-login customize - auth0 ul customize`, + auth0 ul customize + auth0 ul customize --rendering-mode standard + auth0 ul customize -r standard + auth0 ul customize --rendering-mode advanced --prompt login-id --screen login-id + auth0 ul customize --rendering-mode advanced --prompt login-id --screen login-id --settings-file settings.json + auth0 ul customize -r advanced -p login-id -s login-id -f settings.json`, RunE: func(cmd *cobra.Command, args []string) error { ctx := cmd.Context() @@ -313,7 +318,7 @@ func fetchPromptScreenInfo(cmd *cobra.Command, input *customizationInputs) error if err := screenName.Select(cmd, &input.screenName, ScreenPromptMap[input.promptName], nil); err != nil { return handleInputError(err) } - + } else { input.screenName = ScreenPromptMap[input.promptName][0] }