(rootCmd *cobra.Command, cli *cli)
| 164 | } |
| 165 | |
| 166 | func addSubCommands(rootCmd *cobra.Command, cli *cli) { |
| 167 | // The order of the commands here matters. |
| 168 | // Add new commands in a place that reflect its |
| 169 | // relevance or relation with other commands. |
| 170 | rootCmd.AddCommand(loginCmd(cli)) |
| 171 | rootCmd.AddCommand(logoutCmd(cli)) |
| 172 | rootCmd.AddCommand(tenantsCmd(cli)) |
| 173 | rootCmd.AddCommand(appsCmd(cli)) |
| 174 | rootCmd.AddCommand(aculCmd(cli)) |
| 175 | rootCmd.AddCommand(usersCmd(cli)) |
| 176 | rootCmd.AddCommand(rulesCmd(cli)) |
| 177 | rootCmd.AddCommand(actionsCmd(cli)) |
| 178 | rootCmd.AddCommand(apisCmd(cli)) |
| 179 | rootCmd.AddCommand(rolesCmd(cli)) |
| 180 | rootCmd.AddCommand(organizationsCmd(cli)) |
| 181 | rootCmd.AddCommand(universalLoginCmd(cli)) |
| 182 | rootCmd.AddCommand(phoneCmd(cli)) |
| 183 | rootCmd.AddCommand(emailCmd(cli)) |
| 184 | rootCmd.AddCommand(customDomainsCmd(cli)) |
| 185 | rootCmd.AddCommand(quickstartsCmd(cli)) |
| 186 | rootCmd.AddCommand(attackProtectionCmd(cli)) |
| 187 | rootCmd.AddCommand(testCmd(cli)) |
| 188 | rootCmd.AddCommand(logsCmd(cli)) |
| 189 | rootCmd.AddCommand(apiCmd(cli)) |
| 190 | rootCmd.AddCommand(terraformCmd(cli)) |
| 191 | rootCmd.AddCommand(eventStreamsCmd(cli)) |
| 192 | rootCmd.AddCommand(networkACLCmd(cli)) |
| 193 | rootCmd.AddCommand(tenantSettingsCmd(cli)) |
| 194 | rootCmd.AddCommand(tokenExchangeCmd(cli)) |
| 195 | |
| 196 | // Keep completion at the bottom. |
| 197 | rootCmd.AddCommand(completionCmd(cli)) |
| 198 | } |
| 199 | |
| 200 | func contextWithCancel() context.Context { |
| 201 | ctx, cancel := context.WithCancel(context.Background()) |
no test coverage detected