Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.command = void 0;
  4. const command_1 = require("../command");
  5. const utils = require("../utils");
  6. const requireAuth_1 = require("../requireAuth");
  7. const client_1 = require("../appdistribution/client");
  8. const options_parser_util_1 = require("../appdistribution/options-parser-util");
  9. exports.command = new command_1.Command("appdistribution:testers:add [emails...]")
  10. .description("add testers to project")
  11. .option("--file <file>", "a path to a file containing a list of tester emails to be added")
  12. .before(requireAuth_1.requireAuth)
  13. .action(async (emails, options) => {
  14. const projectName = await (0, options_parser_util_1.getProjectName)(options);
  15. const appDistroClient = new client_1.AppDistributionClient();
  16. const emailsToAdd = (0, options_parser_util_1.getEmails)(emails, options.file);
  17. utils.logBullet(`Adding ${emailsToAdd.length} testers to project`);
  18. await appDistroClient.addTesters(projectName, emailsToAdd);
  19. });