docs: def run_command(cmd, debug=False):
      """
      Execute the given command and returns None.
  
      :param cmd: A ``sh.Command`` object to execute.
      :param debug: An optional bool to toggle debug output.
      :return: ``sh`` object
      """
      if debug:
          # WARN(retr0h): Uses an internal ``sh`` data structure to dig
          # the environment out of the ``sh.command`` object.
          print_environment_vars(cmd._partial_call_args.get('env', {}))
          print_debug('COMMAND', str(cmd))
          print()
      return cmd(_truncate_exc=False)