index.js 6.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. "use strict";
  2. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  3. if (k2 === undefined) k2 = k;
  4. var desc = Object.getOwnPropertyDescriptor(m, k);
  5. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  6. desc = { enumerable: true, get: function() { return m[k]; } };
  7. }
  8. Object.defineProperty(o, k2, desc);
  9. }) : (function(o, m, k, k2) {
  10. if (k2 === undefined) k2 = k;
  11. o[k2] = m[k];
  12. }));
  13. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  14. Object.defineProperty(o, "default", { enumerable: true, value: v });
  15. }) : function(o, v) {
  16. o["default"] = v;
  17. });
  18. var __importStar = (this && this.__importStar) || function (mod) {
  19. if (mod && mod.__esModule) return mod;
  20. var result = {};
  21. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  22. __setModuleDefault(result, mod);
  23. return result;
  24. };
  25. Object.defineProperty(exports, "__esModule", { value: true });
  26. exports.IonicNamespace = void 0;
  27. const namespace_1 = require("../lib/namespace");
  28. class IonicNamespace extends namespace_1.Namespace {
  29. constructor({ env, project }) {
  30. super(undefined);
  31. this._env = env;
  32. this._project = project;
  33. }
  34. get project() {
  35. return this._project;
  36. }
  37. set project(p) {
  38. this._project = p;
  39. }
  40. get env() {
  41. return this._env;
  42. }
  43. set env(env) {
  44. this._env = env;
  45. }
  46. async getMetadata() {
  47. return {
  48. name: 'ionic',
  49. summary: '',
  50. };
  51. }
  52. async getNamespaces() {
  53. return new namespace_1.NamespaceMap([
  54. ['config', async () => { const { ConfigNamespace } = await Promise.resolve().then(() => __importStar(require('./config/index'))); return new ConfigNamespace(this); }],
  55. ['cordova', async () => { const { CordovaNamespace } = await Promise.resolve().then(() => __importStar(require('./cordova/index'))); return new CordovaNamespace(this); }],
  56. ['capacitor', async () => { const { CapacitorNamespace } = await Promise.resolve().then(() => __importStar(require('./capacitor/index'))); return new CapacitorNamespace(this); }],
  57. ['live-update', async () => { const { LiveUpdatesNamespace } = await Promise.resolve().then(() => __importStar(require('./live-update/index'))); return new LiveUpdatesNamespace(this); }],
  58. ['git', async () => { const { GitNamespace } = await Promise.resolve().then(() => __importStar(require('./git/index'))); return new GitNamespace(this); }],
  59. ['ssl', async () => { const { SSLNamespace } = await Promise.resolve().then(() => __importStar(require('./ssl/index'))); return new SSLNamespace(this); }],
  60. ['ssh', async () => { const { SSHNamespace } = await Promise.resolve().then(() => __importStar(require('./ssh/index'))); return new SSHNamespace(this); }],
  61. ['monitoring', async () => { const { MonitoringNamespace } = await Promise.resolve().then(() => __importStar(require('./monitoring/index'))); return new MonitoringNamespace(this); }],
  62. ['integrations', async () => { const { IntegrationsNamespace } = await Promise.resolve().then(() => __importStar(require('./integrations/index'))); return new IntegrationsNamespace(this); }],
  63. ['enterprise', async () => { const { EnterpriseNamespace } = await Promise.resolve().then(() => __importStar(require('./enterprise/index'))); return new EnterpriseNamespace(this); }],
  64. ['cap', 'capacitor'],
  65. ['cdv', 'cordova'],
  66. ['i', 'integrations'],
  67. ['integration', 'integrations'],
  68. ]);
  69. }
  70. async getCommands() {
  71. return new namespace_1.CommandMap([
  72. ['build', async () => { const { BuildCommand } = await Promise.resolve().then(() => __importStar(require('./build'))); return new BuildCommand(this); }],
  73. ['completion', async () => { const { CompletionCommand } = await Promise.resolve().then(() => __importStar(require('./completion'))); return new CompletionCommand(this); }],
  74. ['generate', async () => { const { GenerateCommand } = await Promise.resolve().then(() => __importStar(require('./generate'))); return new GenerateCommand(this); }],
  75. ['help', async () => { const { HelpCommand } = await Promise.resolve().then(() => __importStar(require('./help'))); return new HelpCommand(this); }],
  76. ['info', async () => { const { InfoCommand } = await Promise.resolve().then(() => __importStar(require('./info'))); return new InfoCommand(this); }],
  77. ['init', async () => { const { InitCommand } = await Promise.resolve().then(() => __importStar(require('./init'))); return new InitCommand(this); }],
  78. ['ionitron', async () => { const { IonitronCommand } = await Promise.resolve().then(() => __importStar(require('./ionitron'))); return new IonitronCommand(this); }],
  79. ['link', async () => { const { LinkCommand } = await Promise.resolve().then(() => __importStar(require('./link'))); return new LinkCommand(this); }],
  80. ['login', async () => { const { LoginCommand } = await Promise.resolve().then(() => __importStar(require('./login'))); return new LoginCommand(this); }],
  81. ['logout', async () => { const { LogoutCommand } = await Promise.resolve().then(() => __importStar(require('./logout'))); return new LogoutCommand(this); }],
  82. ['repair', async () => { const { RepairCommand } = await Promise.resolve().then(() => __importStar(require('./repair'))); return new RepairCommand(this); }],
  83. ['serve', async () => { const { ServeCommand } = await Promise.resolve().then(() => __importStar(require('./serve'))); return new ServeCommand(this); }],
  84. ['share', async () => { const { ShareCommand } = await Promise.resolve().then(() => __importStar(require('./share'))); return new ShareCommand(this); }],
  85. ['signup', async () => { const { SignupCommand } = await Promise.resolve().then(() => __importStar(require('./signup'))); return new SignupCommand(this); }],
  86. ['start', async () => { const { StartCommand } = await Promise.resolve().then(() => __importStar(require('./start'))); return new StartCommand(this); }],
  87. ['state', async () => { const { StateCommand } = await Promise.resolve().then(() => __importStar(require('./state'))); return new StateCommand(this); }],
  88. ['telemetry', async () => { const { TelemetryCommand } = await Promise.resolve().then(() => __importStar(require('./telemetry'))); return new TelemetryCommand(this); }],
  89. ['version', async () => { const { VersionCommand } = await Promise.resolve().then(() => __importStar(require('./version'))); return new VersionCommand(this); }],
  90. ['g', 'generate'],
  91. ['s', 'serve'],
  92. ]);
  93. }
  94. }
  95. exports.IonicNamespace = IonicNamespace;