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

Function aculConfigSetCmd

internal/cli/acul_config.go:346–378  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

344}
345
346func aculConfigSetCmd(cli *cli) *cobra.Command {
347 var input aculConfigInput
348
349 cmd := &cobra.Command{
350 Use: "set",
351 Args: cobra.MaximumNArgs(1),
352 Short: "Set the rendering settings for a specific screen",
353 Long: "Set the rendering settings for a specific screen.",
354 Example: ` auth0 acul config set <screen-name>
355 auth0 acul config set <screen-name> --file settings.json
356 auth0 acul config set signup-id --file settings.json
357 auth0 acul config set login-id`,
358 RunE: func(cmd *cobra.Command, args []string) error {
359 if err := ensureACULPrerequisites(cmd.Context(), cli.api); err != nil {
360 return err
361 }
362
363 screens, err := validateAndSelectScreens(cli, utils.FetchKeys(ScreenPromptMap), args, false)
364 if err != nil {
365 return err
366 }
367
368 input.screenName = screens[0]
369
370 cli.renderer.Output(ansi.Yellow("📖 Customization Guide: https://github.com/auth0/auth0-cli/blob/main/CUSTOMIZATION_GUIDE.md"))
371
372 return advanceCustomize(cmd, cli, input)
373 },
374 }
375
376 file.RegisterString(cmd, &input.filePath, "")
377 return cmd
378}
379
380func advanceCustomize(cmd *cobra.Command, cli *cli, input aculConfigInput) error {
381 currMode := standardMode

Callers 1

aculConfigureCmdFunction · 0.85

Calls 7

FetchKeysFunction · 0.92
YellowFunction · 0.92
ensureACULPrerequisitesFunction · 0.85
validateAndSelectScreensFunction · 0.85
advanceCustomizeFunction · 0.85
OutputMethod · 0.80
RegisterStringMethod · 0.80

Tested by

no test coverage detected