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

Function openOrganizationCmd

internal/cli/organizations.go:552–580  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

550}
551
552func openOrganizationCmd(cli *cli) *cobra.Command {
553 var inputs struct {
554 ID string
555 }
556
557 cmd := &cobra.Command{
558 Use: "open",
559 Args: cobra.MaximumNArgs(1),
560 Short: "Open the settings page of an organization",
561 Long: "Open an organization's settings page in the Auth0 Dashboard.",
562 Example: ` auth0 orgs open
563 auth0 orgs open <org-id>`,
564 RunE: func(cmd *cobra.Command, args []string) error {
565 if len(args) == 0 {
566 err := organizationID.Pick(cmd, &inputs.ID, cli.organizationPickerOptions)
567 if err != nil {
568 return err
569 }
570 } else {
571 inputs.ID = args[0]
572 }
573
574 openManageURL(cli, cli.Config.DefaultTenant, formatOrganizationDetailsPath(url.PathEscape(inputs.ID)))
575 return nil
576 },
577 }
578
579 return cmd
580}
581
582func membersOrganizationCmd(cli *cli) *cobra.Command {
583 cmd := &cobra.Command{

Callers 1

organizationsCmdFunction · 0.85

Calls 3

openManageURLFunction · 0.85
PickMethod · 0.45

Tested by

no test coverage detected