MCPcopy
hub / github.com/grafana/tempo / rootCmd

Function rootCmd

tools/chloggen/cmd/root.go:32–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30)
31
32func rootCmd() *cobra.Command {
33 cmd := &cobra.Command{
34 Use: "chloggen",
35 Short: "Updates CHANGELOG.MD to include all new changes",
36 Long: `chloggen is a tool used to automate the generation of CHANGELOG files using individual yaml files as the source.`,
37 }
38 cmd.SetOut(os.Stdout)
39 cmd.PersistentFlags().StringVar(&configFile, "config", "", "(optional) chloggen config file")
40 cmd.AddCommand(newCmd())
41 cmd.AddCommand(updateCmd())
42 cmd.AddCommand(validateCmd())
43 return cmd
44}
45
46// Execute executes the root command.
47func Execute() {

Callers 2

runCobraFunction · 0.85
ExecuteFunction · 0.85

Calls 3

newCmdFunction · 0.85
updateCmdFunction · 0.85
validateCmdFunction · 0.85

Tested by 1

runCobraFunction · 0.68