| 30 | ) |
| 31 | |
| 32 | func 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. |
| 47 | func Execute() { |