(parent *cobra.Command, opts ...driver.OptionsModifier)
| 27 | } |
| 28 | |
| 29 | func RegisterCommandRecursive(parent *cobra.Command, opts ...driver.OptionsModifier) { |
| 30 | createCmd := NewCreateCmd() |
| 31 | createCmd.AddCommand( |
| 32 | NewCreateClientsCommand(), |
| 33 | NewCreateJWKSCmd(), |
| 34 | ) |
| 35 | |
| 36 | getCmd := NewGetCmd() |
| 37 | getCmd.AddCommand( |
| 38 | NewGetClientsCmd(), |
| 39 | NewGetJWKSCmd(), |
| 40 | ) |
| 41 | |
| 42 | deleteCmd := NewDeleteCmd() |
| 43 | deleteCmd.AddCommand( |
| 44 | NewDeleteClientCmd(), |
| 45 | NewDeleteJWKSCommand(), |
| 46 | NewDeleteAccessTokensCmd(), |
| 47 | ) |
| 48 | |
| 49 | listCmd := NewListCmd() |
| 50 | listCmd.AddCommand(NewListClientsCmd()) |
| 51 | |
| 52 | updateCmd := NewUpdateCmd() |
| 53 | updateCmd.AddCommand(NewUpdateClientCmd()) |
| 54 | |
| 55 | importCmd := NewImportCmd() |
| 56 | importCmd.AddCommand( |
| 57 | NewImportClientCmd(), |
| 58 | NewKeysImportCmd(), |
| 59 | ) |
| 60 | |
| 61 | performCmd := NewPerformCmd() |
| 62 | performCmd.AddCommand( |
| 63 | NewPerformClientCredentialsCmd(), |
| 64 | NewPerformAuthorizationCodeCmd(), |
| 65 | NewPerformDeviceCodeCmd(), |
| 66 | ) |
| 67 | |
| 68 | revokeCmd := NewRevokeCmd() |
| 69 | revokeCmd.AddCommand(NewRevokeTokenCmd()) |
| 70 | |
| 71 | introspectCmd := NewIntrospectCmd() |
| 72 | introspectCmd.AddCommand(NewIntrospectTokenCmd()) |
| 73 | |
| 74 | migrateCmd := NewMigrateCmd() |
| 75 | migrateCmd.AddCommand(NewMigrateSQLCmd(opts)) |
| 76 | migrateCmd.AddCommand(NewMigrateStatusCmd(opts)) |
| 77 | |
| 78 | serveCmd := NewServeCmd() |
| 79 | serveCmd.AddCommand(NewServeAdminCmd(opts)) |
| 80 | serveCmd.AddCommand(NewServePublicCmd(opts)) |
| 81 | serveCmd.AddCommand(NewServeAllCmd(opts)) |
| 82 | |
| 83 | parent.AddCommand( |
| 84 | createCmd, |
| 85 | getCmd, |
| 86 | deleteCmd, |
no test coverage detected