Skip to content

Commit

Permalink
DXCDT-545: Add universal-login customize command skeleton (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught committed Nov 1, 2023
1 parent a89be7b commit d15bea9
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/auth0_universal-login.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Manage a consistent, branded Universal Login experience that can handle all of y

## Commands

- [auth0 universal-login customize](auth0_universal-login_customize.md) - Customize the Universal Login experience
- [auth0 universal-login prompts](auth0_universal-login_prompts.md) - Manage custom text for prompts
- [auth0 universal-login show](auth0_universal-login_show.md) - Display the custom branding settings for Universal Login
- [auth0 universal-login templates](auth0_universal-login_templates.md) - Manage custom Universal Login templates
Expand Down
43 changes: 43 additions & 0 deletions docs/auth0_universal-login_customize.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: default
parent: auth0 universal-login
has_toc: false
---
# auth0 universal-login customize

Customize and preview changes to the Universal Login experience. This command will open a webpage within your browser where you can edit and preview your branding changes. For a comprehensive list of editable parameters and their values please visit the [Management API Documentation](https://auth0.com/docs/api/management/v2).

## Usage
```
auth0 universal-login customize [flags]
```

## Examples

```
auth0 universal-login customize
auth0 ul customize
```




## Inherited Flags

```
--debug Enable debug mode.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
```


## Related Commands

- [auth0 universal-login customize](auth0_universal-login_customize.md) - Customize the Universal Login experience
- [auth0 universal-login prompts](auth0_universal-login_prompts.md) - Manage custom text for prompts
- [auth0 universal-login show](auth0_universal-login_show.md) - Display the custom branding settings for Universal Login
- [auth0 universal-login templates](auth0_universal-login_templates.md) - Manage custom Universal Login templates
- [auth0 universal-login update](auth0_universal-login_update.md) - Update the custom branding settings for Universal Login


1 change: 1 addition & 0 deletions docs/auth0_universal-login_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ auth0 universal-login show [flags]

## Related Commands

- [auth0 universal-login customize](auth0_universal-login_customize.md) - Customize the Universal Login experience
- [auth0 universal-login prompts](auth0_universal-login_prompts.md) - Manage custom text for prompts
- [auth0 universal-login show](auth0_universal-login_show.md) - Display the custom branding settings for Universal Login
- [auth0 universal-login templates](auth0_universal-login_templates.md) - Manage custom Universal Login templates
Expand Down
1 change: 1 addition & 0 deletions docs/auth0_universal-login_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ auth0 universal-login update [flags]

## Related Commands

- [auth0 universal-login customize](auth0_universal-login_customize.md) - Customize the Universal Login experience
- [auth0 universal-login prompts](auth0_universal-login_prompts.md) - Manage custom text for prompts
- [auth0 universal-login show](auth0_universal-login_show.md) - Display the custom branding settings for Universal Login
- [auth0 universal-login templates](auth0_universal-login_templates.md) - Manage custom Universal Login templates
Expand Down
1 change: 1 addition & 0 deletions internal/cli/universal_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func universalLoginCmd(cli *cli) *cobra.Command {

cmd.SetUsageTemplate(resourceUsageTemplate())

cmd.AddCommand(customizeUniversalLoginCmd(cli))
cmd.AddCommand(showUniversalLoginCmd(cli))
cmd.AddCommand(updateUniversalLoginCmd(cli))
cmd.AddCommand(universalLoginTemplatesCmd(cli))
Expand Down
26 changes: 26 additions & 0 deletions internal/cli/universal_login_customize.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package cli

import (
"fmt"

"github.com/spf13/cobra"
)

func customizeUniversalLoginCmd(_ *cli) *cobra.Command {
cmd := &cobra.Command{
Use: "customize",
Args: cobra.NoArgs,
Short: "Customize the Universal Login experience",
Long: "Customize and preview changes to the Universal Login experience. This command will open a webpage " +
"within your browser where you can edit and preview your branding changes. For a comprehensive list of " +
"editable parameters and their values please visit the " +
"[Management API Documentation](https://auth0.com/docs/api/management/v2).",
Example: ` auth0 universal-login customize
auth0 ul customize`,
RunE: func(cmd *cobra.Command, args []string) error {
return fmt.Errorf("not yet implemented")
},
}

return cmd
}

0 comments on commit d15bea9

Please sign in to comment.