Skip to content

Commit

Permalink
Add examples for ul customize
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya18101 committed Dec 19, 2024
1 parent c42775c commit d03f0b8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/auth0_universal-login_customize.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand Down
9 changes: 7 additions & 2 deletions internal/cli/universal_login_customize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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]
}

Expand Down

0 comments on commit d03f0b8

Please sign in to comment.