Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXCDT-545: Add universal-login customize command skeleton #860

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}