code: function exec (cmd) {
  
          var deferred = Q.defer();
  
          faithfulExec(cmd)
              .then(function (result) {
                  deferred.resolve(result);
              }, function (result) {
                  deferred.reject(result);
              });
  
          return deferred.promise;
  
      }
docs: Helper functions