GSI - Employe Self Service Mobile
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.

19 lines
820 B

2 months ago
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.command = void 0;
  4. const command_1 = require("../command");
  5. const error_1 = require("../error");
  6. const projects_1 = require("../management/projects");
  7. const requireAuth_1 = require("../requireAuth");
  8. exports.command = new command_1.Command("projects:addfirebase [projectId]")
  9. .description("add Firebase resources to a Google Cloud Platform project")
  10. .before(requireAuth_1.requireAuth)
  11. .action(async (projectId, options) => {
  12. if (!options.nonInteractive && !projectId) {
  13. projectId = await (0, projects_1.promptAvailableProjectId)();
  14. }
  15. if (!projectId) {
  16. throw new error_1.FirebaseError("Project ID cannot be empty");
  17. }
  18. return (0, projects_1.addFirebaseToCloudProjectAndLog)(projectId);
  19. });