code: func runWrapper(cf func(cmd *cobra.Command, args []string) (exit int)) func(cmd *cobra.Command, args []string) {
  	return func(cmd *cobra.Command, args []string) {
  		cpufile, memfile, err := startProfile()
  		if err != nil {
  			stderr.PrintE("cannot setup profiling", err)
  			cmdExitCode = 254
  			return
  		}
  		defer stopProfile(cpufile, memfile)
  
  		cmdExitCode = cf(cmd, args)
  	}
  }
docs: // runWrapper returns a func(cmd *cobra.Command, args []string) that internally
  // will add command function return code and the reinsertion of the "--" flag
  // terminator.