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

Function AddCommandsTo

cmd/root.go:59–72  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

57}
58
59func AddCommandsTo(cmd *cobra.Command) {
60 cmd.AddCommand(compare.CompareCmd)
61 cmd.AddCommand(fetch.FetchCmd)
62 cmd.AddCommand(initialize.InitCmd)
63 cmd.AddCommand(inspect.InspectCmd)
64 cmd.AddCommand(track.TrackCmd)
65 cmd.AddCommand(validate.ValidateCmd)
66 cmd.AddCommand(version.VersionCmd)
67 cmd.AddCommand(opa.OPACmd)
68 cmd.AddCommand(sigstore.SigstoreCmd)
69 if utils.Experimental() {
70 cmd.AddCommand(test.NewTestCommand(context.Background()))
71 }
72}

Callers 2

ExecuteFunction · 0.92
initFunction · 0.85

Calls 2

ExperimentalFunction · 0.92
NewTestCommandFunction · 0.92

Tested by

no test coverage detected