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

Function testCmd

internal/cli/test.go:95–107  ·  view source on GitHub ↗
(cli *cli)

Source from the content-addressed store, hash-verified

93}
94
95func testCmd(cli *cli) *cobra.Command {
96 cmd := &cobra.Command{
97 Use: "test",
98 Short: "Try your Universal Login box or get a token",
99 Long: "Try your Universal Login box or get a token.\n" + "This command uses the client credentials grant for machine-to-machine applications and the authorization code grant (with Universal Login) for other application types, such as regular, web or native apps.",
100 }
101
102 cmd.SetUsageTemplate(resourceUsageTemplate())
103 cmd.AddCommand(testTokenCmd(cli))
104 cmd.AddCommand(testLoginCmd(cli))
105
106 return cmd
107}
108
109func testLoginCmd(cli *cli) *cobra.Command {
110 var inputs testCmdInputs

Callers 1

addSubCommandsFunction · 0.85

Calls 3

resourceUsageTemplateFunction · 0.85
testTokenCmdFunction · 0.85
testLoginCmdFunction · 0.85

Tested by

no test coverage detected