MCPcopy Create free account
hub / github.com/auth0/auth0-cli / updatePromptsTextCmd

Function updatePromptsTextCmd

internal/cli/prompts_custom_text.go:96–113  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

94}
95
96func updatePromptsTextCmd(cli *cli) *cobra.Command {
97 var inputs promptsTextInput
98
99 cmd := &cobra.Command{
100 Use: "update",
101 Args: cobra.MaximumNArgs(1),
102 Short: "Update the custom text for a prompt",
103 Long: "Update the custom text for a prompt.",
104 Example: ` auth0 universal-login prompts update <prompt>
105 auth0 universal-login prompts update <prompt> --language <language>
106 auth0 ul prompts update signup -l es`,
107 RunE: updateBrandingText(cli, &inputs),
108 }
109
110 textLanguage.RegisterString(cmd, &inputs.Language, textLanguageDefault)
111
112 return cmd
113}
114
115func showPromptsText(cli *cli, inputs *promptsTextInput) func(cmd *cobra.Command, args []string) error {
116 return func(cmd *cobra.Command, args []string) error {

Callers 1

Calls 2

updateBrandingTextFunction · 0.85
RegisterStringMethod · 0.80

Tested by

no test coverage detected