qcobjects-cli 2.5.103-beta → 2.5.105-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/VERSION +1 -1
  2. package/build-esbuild.js +65 -12
  3. package/package.json +55 -21
  4. package/public/browser/com.qcobjects.cli.commands.jira.client_services.js +66 -55
  5. package/public/browser/com.qcobjects.cli.commands.jira.client_services.js.map +2 -2
  6. package/public/browser/com.qcobjects.cli.commands.jira.js +138 -93
  7. package/public/browser/com.qcobjects.cli.commands.jira.js.map +4 -4
  8. package/public/browser/com.qcobjects.cli.commands.js +371 -14
  9. package/public/browser/com.qcobjects.cli.commands.js.map +4 -4
  10. package/public/browser/com.qcobjects.cli.commands.version.js +220 -214
  11. package/public/browser/com.qcobjects.cli.commands.version.js.map +2 -2
  12. package/public/browser/index.js +4042 -13
  13. package/public/browser/index.js.map +4 -4
  14. package/public/browser/org.qcobjects.common.pipelog.js +37 -24
  15. package/public/browser/org.qcobjects.common.pipelog.js.map +2 -2
  16. package/public/browser/org.qcobjects.enterprise.commands.js +108 -117
  17. package/public/browser/org.qcobjects.enterprise.commands.js.map +3 -3
  18. package/public/browser/org.quickcorp.qcobjects.api.client_services.js +64 -55
  19. package/public/browser/org.quickcorp.qcobjects.api.client_services.js.map +2 -2
  20. package/public/browser/org.quickcorp.qcobjects.cli.js +1280 -379
  21. package/public/browser/org.quickcorp.qcobjects.cli.js.map +4 -4
  22. package/public/browser/org.quickcorp.qcobjects.defaultsettings.js +373 -359
  23. package/public/browser/org.quickcorp.qcobjects.defaultsettings.js.map +2 -2
  24. package/public/browser/qcobjects-cli.js +4042 -13
  25. package/public/browser/qcobjects-cli.js.map +4 -4
  26. package/public/browser/templates/apps/spa-local.html +28 -0
  27. package/public/browser/templates/apps/spa-local.js +65 -0
  28. package/public/browser/templates/pwa/sw.js +112 -0
  29. package/public/cjs/com.qcobjects.cli.commands.cjs +377 -6
  30. package/public/cjs/com.qcobjects.cli.commands.cjs.map +4 -4
  31. package/public/cjs/com.qcobjects.cli.commands.jira.cjs +82 -24
  32. package/public/cjs/com.qcobjects.cli.commands.jira.cjs.map +4 -4
  33. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs +25 -1
  34. package/public/cjs/com.qcobjects.cli.commands.jira.client_services.cjs.map +2 -2
  35. package/public/cjs/com.qcobjects.cli.commands.version.cjs +25 -6
  36. package/public/cjs/com.qcobjects.cli.commands.version.cjs.map +2 -2
  37. package/public/cjs/index.cjs +4042 -13
  38. package/public/cjs/index.cjs.map +4 -4
  39. package/public/cjs/org.qcobjects.common.pipelog.cjs +40 -14
  40. package/public/cjs/org.qcobjects.common.pipelog.cjs.map +2 -2
  41. package/public/cjs/org.qcobjects.enterprise.commands.cjs +38 -34
  42. package/public/cjs/org.qcobjects.enterprise.commands.cjs.map +3 -3
  43. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs +24 -2
  44. package/public/cjs/org.quickcorp.qcobjects.api.client_services.cjs.map +2 -2
  45. package/public/cjs/org.quickcorp.qcobjects.cli.cjs +1032 -118
  46. package/public/cjs/org.quickcorp.qcobjects.cli.cjs.map +4 -4
  47. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs +362 -334
  48. package/public/cjs/org.quickcorp.qcobjects.defaultsettings.cjs.map +2 -2
  49. package/public/cjs/qcobjects-cli.cjs +4047 -13
  50. package/public/cjs/qcobjects-cli.cjs.map +4 -4
  51. package/public/cjs/templates/apps/spa-local.html +28 -0
  52. package/public/cjs/templates/apps/spa-local.js +65 -0
  53. package/public/cjs/templates/pwa/sw.js +112 -0
  54. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs +50 -57
  55. package/public/esm/com.qcobjects.cli.commands.jira.client_services.mjs.map +2 -2
  56. package/public/esm/com.qcobjects.cli.commands.jira.mjs +119 -94
  57. package/public/esm/com.qcobjects.cli.commands.jira.mjs.map +4 -4
  58. package/public/esm/com.qcobjects.cli.commands.mjs +357 -16
  59. package/public/esm/com.qcobjects.cli.commands.mjs.map +4 -4
  60. package/public/esm/com.qcobjects.cli.commands.version.mjs +204 -216
  61. package/public/esm/com.qcobjects.cli.commands.version.mjs.map +2 -2
  62. package/public/esm/index.mjs +4043 -13
  63. package/public/esm/index.mjs.map +4 -4
  64. package/public/esm/org.qcobjects.common.pipelog.mjs +21 -26
  65. package/public/esm/org.qcobjects.common.pipelog.mjs.map +2 -2
  66. package/public/esm/org.qcobjects.enterprise.commands.mjs +92 -119
  67. package/public/esm/org.qcobjects.enterprise.commands.mjs.map +3 -3
  68. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs +48 -57
  69. package/public/esm/org.quickcorp.qcobjects.api.client_services.mjs.map +2 -2
  70. package/public/esm/org.quickcorp.qcobjects.cli.mjs +1266 -380
  71. package/public/esm/org.quickcorp.qcobjects.cli.mjs.map +4 -4
  72. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs +357 -361
  73. package/public/esm/org.quickcorp.qcobjects.defaultsettings.mjs.map +2 -2
  74. package/public/esm/qcobjects-cli.mjs +4046 -14
  75. package/public/esm/qcobjects-cli.mjs.map +4 -4
  76. package/public/esm/templates/apps/spa-local.html +28 -0
  77. package/public/esm/templates/apps/spa-local.js +65 -0
  78. package/public/esm/templates/pwa/sw.js +112 -0
  79. package/public/index.d.ts +140 -10
  80. package/src/com.qcobjects.cli.commands.jira.client_services.ts +19 -21
  81. package/src/com.qcobjects.cli.commands.jira.ts +11 -34
  82. package/src/com.qcobjects.cli.commands.ts +3 -9
  83. package/src/com.qcobjects.cli.commands.version.ts +1 -9
  84. package/src/org.qcobjects.common.pipelog.ts +18 -15
  85. package/src/org.qcobjects.enterprise.commands.ts +29 -50
  86. package/src/org.quickcorp.qcobjects.api.client_services.ts +1 -4
  87. package/src/org.quickcorp.qcobjects.cli.ts +28 -57
  88. package/src/org.quickcorp.qcobjects.defaultsettings.ts +359 -355
  89. package/src/qcobjects-cli.ts +4 -5
@@ -29,26 +29,21 @@
29
29
  /*eslint no-mixed-operators: "off"*/
30
30
  /*eslint no-undef: "off"*/
31
31
  "use strict";
32
- const fs = require("fs");
33
- const path = require("path");
34
- const absolutePath = path.resolve( __dirname, "./" );
35
- const templatePath = path.resolve( __dirname, "./templates/apps/" )+"/";
36
- const templatePwaPath = path.resolve( __dirname, "./templates/pwa/" )+"/";
37
- const package_config = require(absolutePath+"/../package.json");
38
- const { exec,execSync } = require("child_process");
39
-
40
- const {Package, InheritClass, CONFIG, logger} = require("qcobjects");
32
+
33
+ import { execSync } from "node:child_process";
34
+
35
+ const { Package, InheritClass, CONFIG, logger } = require("qcobjects");
41
36
  const license = CONFIG.get("enterprise-license", "1234");
42
37
  const email = CONFIG.get("enterprise-email", "a@b.com");
43
38
 
44
- class QCObjectsEnterprise extends InheritClass {
45
-
46
- install (switchCommander:any) {
39
+ export class QCObjectsEnterprise extends InheritClass {
40
+
41
+ install() {
47
42
  const instance = this;
48
43
  return instance.installEnterprise(license, email);
49
44
  }
50
45
 
51
- upgrade (switchCommander:any){
46
+ upgrade(switchCommander: any) {
52
47
  const instance = this;
53
48
  const readline = require("readline");
54
49
 
@@ -57,18 +52,17 @@ class QCObjectsEnterprise extends InheritClass {
57
52
  output: process.stdout
58
53
  });
59
54
 
60
- var emailQuestion = function (){
55
+ var emailQuestion = function () {
61
56
  rl.question(`
62
57
  [NOTE: No information will be sent to a server until I got your consent]
63
58
 
64
59
  Please tell me your e-Mail (\u{1F48C}):
65
60
  `, (email: string) => {
66
- const asterisk = "*";
67
- if (email !== ""){
68
- var phoneNumberQuestion = function (){
69
- rl.question ("Please tell me your phone number (\u{1F919}): \n", (phonenumber: string) => {
70
- if (phonenumber !== ""){
71
- rl.question (`
61
+ if (email !== "") {
62
+ var phoneNumberQuestion = function () {
63
+ rl.question("Please tell me your phone number (\u{1F919}): \n", (phonenumber: string) => {
64
+ if (phonenumber !== "") {
65
+ rl.question(`
72
66
  Please select one of the following options (type a number):
73
67
 
74
68
  1.- \u{1F640} This is your first interaction \u{1F60D} with QCObjects Enterprise Edition \u{1F3E2},
@@ -82,12 +76,12 @@ class QCObjectsEnterprise extends InheritClass {
82
76
  3.- \u{1F3C3} You want to quit this form, as you got here accidentally
83
77
  (You should think about it. It's not a coincidence, It's destiny \u{1F600}).
84
78
 
85
- Please enter the number of the option and press [enter]: `, (interaction_option: any)=> {
86
- logger.infoEnabled=true;
79
+ Please enter the number of the option and press [enter]: `, (interaction_option: any) => {
80
+ logger.infoEnabled = true;
87
81
 
88
82
  switch (interaction_option) {
89
83
  case "1":
90
- switchCommander.register(email,phonenumber).then(function (response: any){
84
+ switchCommander.register(email, phonenumber).then(function () {
91
85
  logger.info(`\u{1F44F} Congrats! You have been successfully registered to the cloud! \u{1F44F}
92
86
  One of our executives will be in touch with you as soon as possible to give you the next steps
93
87
  to get a new License Number and start using QCObjects Entrprise Edition!
@@ -95,7 +89,7 @@ class QCObjectsEnterprise extends InheritClass {
95
89
  (In the meantime, you can continue using all the features of the QCObjects Community Edition)
96
90
  `);
97
91
  rl.close();
98
- }).catch ((e: any)=>{
92
+ }).catch(() => {
99
93
  rl.close();
100
94
  });
101
95
  break;
@@ -146,18 +140,17 @@ class QCObjectsEnterprise extends InheritClass {
146
140
 
147
141
  }
148
142
 
149
- installEnterprise (license: string | any[], email: any) {
143
+ installEnterprise(license: string | any[], email: any) {
150
144
  const asterisk = "*";
151
145
 
152
146
  logger.info(`Your entered license number is ${asterisk.repeat(license.length)} and the email that you have entered is ${email}`);
153
147
  logger.info("Now, I'm installing QCObjects Enterprise Edition in your computer...");
154
148
  const cmdDownloadGit = `npm i --force -g git+https://license:${license}@software.qcobjects.io/qcobjects-enterprise/qcobjects-enterprise.git`;
155
- exec(cmdDownloadGit,(err: any,stdout: any,stderr: string | string[])=>{
156
- if(!err){
157
- exec("qcobjects --version",(err: any,stdout: string | string[],stderr: any)=>{
158
- if (stdout.lastIndexOf("Enterprise Edition")!==-1){
159
- logger.info("\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \u{1F44F}");
160
- logger.info(`You can test it using:
149
+ execSync(cmdDownloadGit);
150
+ const stdout = execSync("qcobjects --version");
151
+ if (stdout.lastIndexOf("Enterprise Edition") !== -1) {
152
+ logger.info("\u{1F44F} Congrats! Now you have installed QCObjects Entrprise Edition! \u{1F44F}");
153
+ logger.info(`You can test it using:
161
154
  > qcobjects --version
162
155
 
163
156
  To find more help, type the command:
@@ -166,30 +159,16 @@ To find more help, type the command:
166
159
 
167
160
  Enjoy!
168
161
  `);
169
- } else {
170
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
171
- console.log("Ask your executive to help");
172
- }
173
- });
174
-
175
- } else {
176
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
177
- if (stderr.lastIndexOf("Authentication failed")!==-1){
178
- console.log("Please ask to your executive for the right license number");
179
- } else {
180
- console.log(stderr);
181
- }
182
- }
183
- }).stdout.on("data", function(data: any) {
184
- console.log(data);
185
- });
162
+ } else {
163
+ console.log("\u{1F926} Something went wrong \u{1F926} when trying to update your license to QCObjects Enterprise Edition");
164
+ console.log("Ask your executive to help");
165
+ }
186
166
 
187
167
  }
188
168
 
189
169
  }
190
170
 
191
- Package ("org.qcobjects.enterprise.commands", [
171
+ Package("org.qcobjects.enterprise.commands", [
192
172
  QCObjectsEnterprise
193
173
  ]);
194
174
 
195
- exports = {QCObjectsEnterprise};
@@ -32,7 +32,7 @@
32
32
 
33
33
  const {Package, Service, logger} = require("qcobjects");
34
34
 
35
- class QuickCorpCloud extends Service {
35
+ export class QuickCorpCloud extends Service {
36
36
  constructor ({
37
37
  name= "quickcorp_cloud",
38
38
  external= true,
@@ -83,6 +83,3 @@ Package("org.quickcorp.qcobjects.api.client_services", [
83
83
  QuickCorpCloud
84
84
  ]);
85
85
 
86
- exports = {
87
- QuickCorpCloud
88
- };
@@ -31,35 +31,31 @@
31
31
  "use strict";
32
32
  const fs = require("fs");
33
33
  const path = require("path");
34
- const absolutePath = path.resolve(__dirname, "./");
35
- const templatePath = path.resolve(__dirname, "./templates/apps/") + "/";
36
34
  const templatePwaPath = path.resolve(__dirname, "./templates/pwa/") + "/";
37
- const package_config = require(absolutePath + "/../package.json");
38
35
  const { exec, execSync } = require("child_process");
39
36
 
40
- const { CONFIG, findPackageNodePath, Import, logger, Package, InheritClass, New, serviceLoader, global, Service, Component } = require("qcobjects");
37
+ require ("qcobjects");
38
+
39
+ const { CONFIG, findPackageNodePath, logger, Package, InheritClass, New, serviceLoader, global, Service, Component } = require("qcobjects");
41
40
 
42
41
  CONFIG.set("node_modules_path", "./node_modules/");
43
42
  CONFIG.set("qcobjectsnewapp_path", CONFIG.get("node_modules_path") + "/qcobjectsnewapp");
44
43
 
45
- const {QCObjectsEnterprise} = require(absolutePath + "/org.qcobjects.enterprise.commands");
46
- const {QuickCorpCloud} = require(absolutePath + "/org.quickcorp.qcobjects.api.client_services");
47
- require(absolutePath + "/com.qcobjects.cli.commands");
48
-
49
- const ImportCustomCommand = function (commandName: any, commandPackage: string) {
50
- let _ret_;
51
- var standardPath = findPackageNodePath(commandPackage) || findPackageNodePath(commandPackage + ".js");
52
- if (standardPath !== null) {
53
- _ret_ = Import(commandPackage);
54
- } else {
55
- logger.debug(`${commandPackage} is not a valid package for ${commandName}!`);
56
- _ret_ = Promise.reject(new Error(`${commandName} does not exist!`));
57
- }
58
- return _ret_;
44
+ export * as EnterpriseCommands from "./org.qcobjects.enterprise.commands";
45
+ import { QCObjectsEnterprise } from "./org.qcobjects.enterprise.commands";
46
+ export * as QuickCorpServices from "./org.quickcorp.qcobjects.api.client_services";
47
+ import {QuickCorpCloud} from "./org.quickcorp.qcobjects.api.client_services";
48
+ export * as customCommands from "./com.qcobjects.cli.commands";
49
+ import { __get_version__, __get_version_string__ } from "./org.quickcorp.qcobjects.defaultsettings";
50
+
51
+ export const getPluginCommandsList = () => {
52
+ return global.ClassesList
53
+ .filter((c: { packageName: string; }) => c.packageName.startsWith("com.qcobjects.cli.commands."))
54
+ .filter((p: { classFactory: { name: string; }; }) => p.classFactory.name.endsWith("CommandHandler"));
59
55
  };
60
56
 
61
57
 
62
- class SwitchCommander extends InheritClass {
58
+ export class SwitchCommander extends InheritClass {
63
59
 
64
60
  choiceOption = {
65
61
  generateSw: (_appName: boolean, options: { dir: any; }) => {
@@ -71,19 +67,10 @@ class SwitchCommander extends InheritClass {
71
67
 
72
68
  },
73
69
  create: (_appName: boolean, options: { createAmp: any; createPwa: any; createPhp: any; createCustom: any; }) => {
74
- const version = global.__get_version__();
70
+ const version = __get_version__();
75
71
  const switchCommander = this;
76
72
  const appName = (typeof _appName === "undefined" || _appName === true) ? ("MyAppName") : (_appName);
77
73
 
78
- const _package_json_content = `{
79
- "name": "${appName}"
80
- "version": "1.0.0",
81
- "dependencies":{
82
- "qcobjectsnewphp": "latest",
83
- "qcobjects": "${version.qcobjects}",
84
- "qcobjects-sdk": "^${version.sdk}"
85
- }
86
- }`;
87
74
 
88
75
  let appTemplateName;
89
76
 
@@ -111,7 +98,7 @@ class SwitchCommander extends InheritClass {
111
98
  logger.debug("_package_json_file: " + _package_json_file);
112
99
  logger.debug(createAppCommand);
113
100
 
114
- exec(createAppCommand, (err: { message: string | undefined; }, stdout: any, stderr: any) => {
101
+ exec(createAppCommand, (err: { message: string | undefined; }) => {
115
102
  if (err) {
116
103
  throw Error(err.message);
117
104
  // eslint-disable-next-line no-unreachable
@@ -132,7 +119,7 @@ class SwitchCommander extends InheritClass {
132
119
  switchCommander.copyTemplate(path.resolve(findPackageNodePath(appTemplateName), appTemplateName), path.resolve(CONFIG.get("projectPath"), "./"))
133
120
  .then(() => {
134
121
 
135
- exec("npm uninstall " + appTemplateName + " --save && npm cache verify", (err: { message: string | undefined; }, stdout: any, stderr: any) => {
122
+ exec("npm uninstall " + appTemplateName + " --save && npm cache verify", (err: { message: string | undefined; }) => {
136
123
  if (err) {
137
124
  throw Error(err.message);
138
125
  // eslint-disable-next-line no-unreachable
@@ -149,7 +136,7 @@ class SwitchCommander extends InheritClass {
149
136
  execSync("npm install --save-dev qcobjects-cli ");
150
137
  });
151
138
 
152
- exec("npm cache verify && npm i ", (err: { message: string | undefined; }, stdout: any, stderr: any) => {
139
+ exec("npm cache verify && npm i ", (err: { message: string | undefined; }) => {
153
140
  if (err) {
154
141
  throw Error(err.message);
155
142
  // eslint-disable-next-line no-unreachable
@@ -160,7 +147,7 @@ class SwitchCommander extends InheritClass {
160
147
  logger.info("Good! Your application is done. You can play with QCObjects now!");
161
148
 
162
149
  logger.info("I will create the SSL certificates now. It may take some time...");
163
- exec("qcobjects-createcert", (err: any, stdout: any, stderr: any) => {
150
+ exec("qcobjects-createcert", () => {
164
151
  logger.info("Test certificates generated");
165
152
 
166
153
  const githubService = New(Service);
@@ -200,7 +187,7 @@ class SwitchCommander extends InheritClass {
200
187
  console.log(data);
201
188
  });
202
189
 
203
- }).stdout.on("data", function (data: any) {
190
+ }).stdout.on("data", function () {
204
191
  console.log("App generation started...");
205
192
  });
206
193
 
@@ -240,11 +227,6 @@ class SwitchCommander extends InheritClass {
240
227
  })).catch(e => reject_all(e as Error));
241
228
  }
242
229
  );
243
- var _promise_all = Promise.all(_promises_set).then(function (response) {
244
- resolve_all(response);
245
- }).catch(function (e) {
246
- reject_all(e as Error);
247
- });
248
230
  }).catch(e => console.log(e));
249
231
  }
250
232
 
@@ -269,14 +251,6 @@ class SwitchCommander extends InheritClass {
269
251
  });
270
252
  // logger.debugEnabled = true;
271
253
  try {
272
- const service = serviceLoader(cloudClient).then((successResonse: { service: { template: any; }; }) => {
273
- const template = successResonse.service.template;
274
- const response = JSON.parse(template);
275
- resolve(response);
276
- }).catch((e: any) => {
277
- console.log("\u{1F926} Something went wrong \u{1F926} when trying to register you in the cloud");
278
- reject(e as Error);
279
- });
280
254
  } catch (e) {
281
255
  console.log("\u{1F926} Something went wrong \u{1F926} when trying to register you in the cloud");
282
256
  reject(e as Error);
@@ -326,7 +300,7 @@ class SwitchCommander extends InheritClass {
326
300
  }
327
301
  }
328
302
 
329
- return new Promise((resolve, reject) => {
303
+ return new Promise(() => {
330
304
  var filelist = ["/"].concat(this.fileListRecursive(`${dirPrefix}`));
331
305
  if (typeof dirPrefix !== "undefined" && dirPrefix !== "./" && dirPrefix !== ".") {
332
306
  filelist = filelist.map(f => f.replace(new RegExp(`${dirPrefix}/`), ""));
@@ -421,7 +395,7 @@ class SwitchCommander extends InheritClass {
421
395
  logger.debug("Installing Commands...");
422
396
 
423
397
  switchCommander.program
424
- .version(global.__get_version_string__());
398
+ .version(__get_version_string__());
425
399
  switchCommander.program
426
400
  .command("create <appname>")
427
401
  .description("Creates an app with <appname>")
@@ -438,14 +412,11 @@ class SwitchCommander extends InheritClass {
438
412
  try {
439
413
  logger.debug("Loading Plugin Commands...");
440
414
  const importPluginCommands = function (switchCommander: any) {
441
- return global.ClassesList
442
- .filter((c: { packageName: string; }) => c.packageName.startsWith("com.qcobjects.cli.commands."))
443
- .filter((p: { classFactory: { name: string; }; }) => p.classFactory.name.endsWith("CommandHandler"))
444
- .map((pluginCommand: { packageName: any; classFactory: any; plugin: any; }) => {
415
+ return getPluginCommandsList().map((pluginCommand: { packageName: any; classFactory: any; plugin: any; }) => {
445
416
  try {
446
417
  logger.debug(`Loading plugin ${pluginCommand.packageName}`);
447
418
  const classFactory = pluginCommand.classFactory;
448
- pluginCommand.plugin = New(classFactory, { switchCommander: switchCommander });
419
+ pluginCommand.plugin = new classFactory ({ switchCommander: switchCommander });
449
420
  } catch (e) {
450
421
  throw Error(`Something went wrong loading ${pluginCommand.packageName}`);
451
422
  }
@@ -481,12 +452,12 @@ class SwitchCommander extends InheritClass {
481
452
  });
482
453
  switchCommander.program.command("launch <appname>")
483
454
  .description("Launches the application")
484
- .action(function (args: any, options: any) {
455
+ .action(function () {
485
456
  logger.info("Launching...");
486
457
  setTimeout(() => {
487
458
  logger.info("Go to the browser and open https://localhost ");
488
459
  logger.info("Press Ctrl-C to stop serving ");
489
- exec("qcobjects-server", (err: any, stdout: any, stderr: any) => {
460
+ exec("qcobjects-server", () => {
490
461
  }).stdout.on("data", function (data: any) {
491
462
  console.log(data);
492
463
  });
@@ -530,4 +501,4 @@ Package("org.quickcorp.qcobjects.cli", [
530
501
 
531
502
  SwitchCommander
532
503
  ]);
533
- exports = {SwitchCommander};
504
+ global.SwitchCommander = SwitchCommander;