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

Function openUserCmd

internal/cli/users.go:827–854  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

825}
826
827func openUserCmd(cli *cli) *cobra.Command {
828 var inputs struct {
829 ID string
830 }
831
832 cmd := &cobra.Command{
833 Use: "open",
834 Args: cobra.MaximumNArgs(1),
835 Short: "Open the user's settings page",
836 Long: "Open the settings page of a user in the Auth0 Dashboard.",
837 Example: ` auth0 users open <id>
838 auth0 users open "auth0|xxxxxxxxxx"`,
839 RunE: func(cmd *cobra.Command, args []string) error {
840 if len(args) == 0 {
841 if err := userID.Ask(cmd, &inputs.ID); err != nil {
842 return err
843 }
844 } else {
845 inputs.ID = args[0]
846 }
847
848 openManageURL(cli, cli.Config.DefaultTenant, formatUserDetailsPath(url.PathEscape(inputs.ID)))
849 return nil
850 },
851 }
852
853 return cmd
854}
855
856func importUsersCmd(cli *cli) *cobra.Command {
857 var inputs struct {

Callers 1

usersCmdFunction · 0.85

Calls 3

openManageURLFunction · 0.85
formatUserDetailsPathFunction · 0.85
AskMethod · 0.45

Tested by

no test coverage detected