(cli *cli)
| 93 | } |
| 94 | |
| 95 | func 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 | |
| 109 | func testLoginCmd(cli *cli) *cobra.Command { |
| 110 | var inputs testCmdInputs |
no test coverage detected