// NewRoot returns a root cobra.Command for the whole CLI.funcNewRoot()*cobra.Command{cmd:=&cobra.Command{Use:"example",Short:"An example CLI built with github.com/spf13/cobra",}opts:=[]upgrade.Options{upgrade.WithRenderer(func(in*upgrade.Info,isSmartTerminalbool)(string,error){returnfmt.Sprintf(` Version %q New Version %q `,in.Version,in.NewVersion),nil}),}cmd.AddCommand(// 1. Register the 'version' commandextension.NewVersionCobraCmd(// 2. Explicitly enable the upgrade noticeextension.WithUpgradeNotice("mszostok","codeowners-validator",opts...),),)returncmd}