MCPcopy Create free account
hub / github.com/conforma/cli / setUpCobra

Function setUpCobra

cmd/validate/common_test.go:49–55  ·  view source on GitHub ↗
(command *cobra.Command)

Source from the content-addressed store, hash-verified

47}
48
49func setUpCobra(command *cobra.Command) *cobra.Command {
50 validateCmd := NewValidateCmd()
51 validateCmd.AddCommand(command)
52 cmd := root.NewRootCmd()
53 cmd.AddCommand(validateCmd)
54 return cmd
55}

Calls 2

NewRootCmdFunction · 0.92
NewValidateCmdFunction · 0.85

Tested by

no test coverage detected