MCPcopy
hub / github.com/ory/keto / RegisterCommandsRecursive

Function RegisterCommandsRecursive

cmd/relationtuple/root.go:22–28  ·  view source on GitHub ↗
(parent *cobra.Command)

Source from the content-addressed store, hash-verified

20}
21
22func RegisterCommandsRecursive(parent *cobra.Command) {
23 relationCmd := newRelationCmd()
24
25 parent.AddCommand(relationCmd)
26
27 relationCmd.AddCommand(NewGetCmd(), NewCreateCmd(), NewDeleteCmd(), NewDeleteAllCmd(), NewParseCmd())
28}
29
30func registerPackageFlags(flags *pflag.FlagSet) {
31 client.RegisterRemoteURLFlags(flags)

Callers 5

NewRootCmdFunction · 0.92
TestExpandCommandFunction · 0.92
TestCheckCommandFunction · 0.92
TestCreateCmdFunction · 0.70
TestDeleteCmdFunction · 0.70

Calls 6

newRelationCmdFunction · 0.85
NewGetCmdFunction · 0.85
NewCreateCmdFunction · 0.85
NewDeleteCmdFunction · 0.85
NewDeleteAllCmdFunction · 0.85
NewParseCmdFunction · 0.85

Tested by 4

TestExpandCommandFunction · 0.74
TestCheckCommandFunction · 0.74
TestCreateCmdFunction · 0.56
TestDeleteCmdFunction · 0.56