MCPcopy
hub / github.com/ory/hydra / RegisterCommandRecursive

Function RegisterCommandRecursive

cmd/root.go:29–98  ·  view source on GitHub ↗
(parent *cobra.Command, opts ...driver.OptionsModifier)

Source from the content-addressed store, hash-verified

27}
28
29func 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,

Callers 1

NewRootCmdFunction · 0.70

Calls 15

NewCreateCmdFunction · 0.85
NewCreateClientsCommandFunction · 0.85
NewCreateJWKSCmdFunction · 0.85
NewGetCmdFunction · 0.85
NewGetClientsCmdFunction · 0.85
NewGetJWKSCmdFunction · 0.85
NewDeleteCmdFunction · 0.85
NewDeleteClientCmdFunction · 0.85
NewDeleteJWKSCommandFunction · 0.85
NewDeleteAccessTokensCmdFunction · 0.85
NewListCmdFunction · 0.85
NewListClientsCmdFunction · 0.85

Tested by

no test coverage detected