code: func runWrapper(cf func(cCmd *cobra.Command, args []string) (exit int)) func(cCmd *cobra.Command, args []string) {
  	return func(cCmd *cobra.Command, args []string) {
  		cAPI = getClientAPI(cCmd)
  		cmdExitCode = cf(cCmd, args)
  	}
  }
docs: // runWrapper returns a func(cCmd *cobra.Command, args []string) that
  // internally will add command function return code, to be able to used for
  // cobra.Command.Run().
  // Note that cAPI must be set before calling cf(), to be able to distinguish
  // different contexts, i.e. a normal cmdline (cAPI) vs. unit test (fakeAPI).
  // So the setting cAPI in runWrapper() has nothing to do with the unit test
  // context. In case of unit tests, cAPI will be set to fakeAPI before calling
  // each run<Cmd>() function, which won't reach runWrapper at all.