"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.runAction = runAction;
function _scope() {
  const data = require("@teambit/legacy/dist/scope");
  _scope = function () {
    return data;
  };
  return data;
}
function _scopeRemotes() {
  const data = require("@teambit/legacy/dist/scope/scope-remotes");
  _scopeRemotes = function () {
    return data;
  };
  return data;
}
async function runAction(actionName, remote, options = {}) {
  const scope = await (0, _scope().loadScope)();
  const scopeRemotes = await (0, _scopeRemotes().getScopeRemotes)(scope);
  const remoteObj = await scopeRemotes.resolve(remote, scope);
  return remoteObj.action(actionName, options);
}

//# sourceMappingURL=run-action.js.map