trm-client 4.9.1 → 4.10.0

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 (51) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +65 -65
  3. package/changelog.txt +94 -82
  4. package/dist/commands/addRegistry.js +1 -2
  5. package/dist/commands/alias.js +1 -2
  6. package/dist/commands/check.js +1 -2
  7. package/dist/commands/commons/viewRegistryPackage.js +3 -4
  8. package/dist/commands/compare.js +18 -9
  9. package/dist/commands/content.js +7 -3
  10. package/dist/commands/createAlias.js +1 -2
  11. package/dist/commands/deleteAlias.js +1 -2
  12. package/dist/commands/findDependencies.js +1 -2
  13. package/dist/commands/import.js +7 -3
  14. package/dist/commands/info.js +1 -2
  15. package/dist/commands/install.js +7 -3
  16. package/dist/commands/list.js +1 -2
  17. package/dist/commands/login.js +1 -2
  18. package/dist/commands/logout.js +1 -2
  19. package/dist/commands/pack.js +1 -2
  20. package/dist/commands/ping.js +1 -2
  21. package/dist/commands/prompts/connect.js +3 -4
  22. package/dist/commands/prompts/pickRegistry.js +1 -2
  23. package/dist/commands/publish.js +18 -9
  24. package/dist/commands/removeRegistry.js +1 -2
  25. package/dist/commands/settings.js +1 -2
  26. package/dist/commands/unpublish.js +18 -9
  27. package/dist/commands/update.js +1 -2
  28. package/dist/commands/view.js +1 -2
  29. package/dist/commands/whoami.js +1 -2
  30. package/dist/index.js +11 -11
  31. package/dist/registryAlias/RegistryAlias.js +17 -7
  32. package/dist/settings/Settings.js +24 -7
  33. package/dist/settings/SettingsData.d.ts +2 -0
  34. package/dist/systemAlias/SystemAlias.js +17 -7
  35. package/dist/utils/checkCliUpdate.js +1 -2
  36. package/dist/utils/checkTrmDependencies.js +1 -2
  37. package/dist/utils/executeCommand.js +21 -11
  38. package/dist/utils/getClientNodeDependencies.js +1 -2
  39. package/dist/utils/getClientVersion.js +1 -2
  40. package/dist/utils/getLogFolder.js +18 -9
  41. package/dist/utils/getNodePackage.js +18 -9
  42. package/dist/utils/getNpmPackageLatestVersion.js +18 -9
  43. package/dist/utils/getRoamingFolder.js +18 -9
  44. package/dist/utils/getRoamingPath.js +1 -2
  45. package/dist/utils/getSapLogonConnections.js +18 -9
  46. package/dist/utils/getSystemConnector.js +2 -2
  47. package/dist/utils/getTempFolder.js +18 -9
  48. package/dist/utils/logError.js +1 -2
  49. package/dist/utils/registerCommand.js +1 -2
  50. package/dist/utils/xml2js.js +18 -9
  51. package/package.json +62 -59
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 RegestaItalia
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2023 RegestaItalia
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,65 +1,65 @@
1
- # <a href="https://docs.trmregistry.com/#/server/README"><img src="https://docs.trmregistry.com/_media/logo.png" height="40" alt="TRM"></a>
2
-
3
- [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-1.3.0-4baaaa.svg)](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
4
- [![trm-client License](https://img.shields.io/github/license/RegestaItalia/trm-client)](https://github.com/RegestaItalia/trm-client)
5
- [![trm-client Latest version](https://img.shields.io/npm/v/trm-client)](https://www.npmjs.com/package/trm-client)
6
- [![trm-client Installs](https://img.shields.io/npm/dt/trm-client)](https://www.npmjs.com/package/trm-client)
7
-
8
- | 🚀 This project is funded and maintained by 🏦 | 🔗 |
9
- |-------------------------------------------------|----------------------------------------------------------------|
10
- | Regesta S.p.A. | [https://www.regestaitalia.eu/](https://www.regestaitalia.eu/) |
11
- | Clarex S.r.l. | [https://www.clarex.it/](https://www.clarex.it/) |
12
-
13
- This is the official CLI implementation of the core functionalities of TRM.
14
-
15
- TRM is a software designed to make transports between SAP ECC/S4 systems easy.
16
-
17
- To find out more about TRM, visit its full [documentation](https://docs.trmregistry.com).
18
-
19
- # Documentation <!-- {docsify-remove} -->
20
-
21
- Full documentation can be seen at [https://docs.trmregistry.com](https://docs.trmregistry.com).
22
-
23
- <!-- START TABLE_OF_CONTENTS.md -->
24
- - [Setup](/docs/setup.md)
25
- - [Commands](/docs/commands.md)
26
- - [Installing your first package](/docs/examples/install.md)
27
- - [Publishing your first package](/docs/examples/publish.md)
28
- - [Integrate with abapGit & Github Actions](/docs/examples/githubActions.md)
29
- <!-- END TABLE_OF_CONTENTS.md -->
30
-
31
- ## Install <!-- {docsify-remove} -->
32
-
33
- First, make sure you have all the [requirements installed](/docs/setup.md#trm-client-requirements).
34
-
35
- You can then install the CLI via npm:
36
-
37
- `npm install trm-client -g`
38
-
39
- ## Commands <!-- {docsify-remove} -->
40
-
41
- List of all commands is available [here](/docs/commands.md).
42
-
43
- ### Demo publish <!-- {docsify-remove} -->
44
-
45
- <p align="center">
46
-   <img src="https://docs.trmregistry.com/_media/publish.gif" />
47
- </p>
48
-
49
- ### Demo install <!-- {docsify-remove} -->
50
-
51
- <p align="center">
52
-   <img src="https://docs.trmregistry.com/_media/install.gif" />
53
- </p>
54
-
55
- # Contributing <!-- {docsify-remove} -->
56
-
57
- Like every other TRM open-source projects, contributions are always welcomed ❤️.
58
-
59
- Make sure to open an issue first.
60
-
61
- Contributions will be merged upon approval.
62
-
63
- [Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines.
64
-
65
- [<img src="https://trmregistry.com/public/contributors?image=true">](https://docs.trmregistry.com/#/?id=contributors)
1
+ # <a href="https://docs.trmregistry.com/#/server/README"><img src="https://docs.trmregistry.com/_media/logo.png" height="40" alt="TRM"></a>
2
+
3
+ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-1.3.0-4baaaa.svg)](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
4
+ [![trm-client License](https://img.shields.io/github/license/RegestaItalia/trm-client)](https://github.com/RegestaItalia/trm-client)
5
+ [![trm-client Latest version](https://img.shields.io/npm/v/trm-client)](https://www.npmjs.com/package/trm-client)
6
+ [![trm-client Installs](https://img.shields.io/npm/dt/trm-client)](https://www.npmjs.com/package/trm-client)
7
+
8
+ | 🚀 This project is funded and maintained by 🏦 | 🔗 |
9
+ |-------------------------------------------------|----------------------------------------------------------------|
10
+ | Regesta S.p.A. | [https://www.regestaitalia.eu/](https://www.regestaitalia.eu/) |
11
+ | Clarex S.r.l. | [https://www.clarex.it/](https://www.clarex.it/) |
12
+
13
+ This is the official CLI implementation of the core functionalities of TRM.
14
+
15
+ TRM is a software designed to make transports between SAP ECC/S4 systems easy.
16
+
17
+ To find out more about TRM, visit its full [documentation](https://docs.trmregistry.com).
18
+
19
+ # Documentation <!-- {docsify-remove} -->
20
+
21
+ Full documentation can be seen at [https://docs.trmregistry.com](https://docs.trmregistry.com).
22
+
23
+ <!-- START TABLE_OF_CONTENTS.md -->
24
+ - [Setup](/docs/setup.md)
25
+ - [Commands](/docs/commands.md)
26
+ - [Installing your first package](/docs/examples/install.md)
27
+ - [Publishing your first package](/docs/examples/publish.md)
28
+ - [Integrate with abapGit & Github Actions](/docs/examples/githubActions.md)
29
+ <!-- END TABLE_OF_CONTENTS.md -->
30
+
31
+ ## Install <!-- {docsify-remove} -->
32
+
33
+ First, make sure you have all the [requirements installed](/docs/setup.md#trm-client-requirements).
34
+
35
+ You can then install the CLI via npm:
36
+
37
+ `npm install trm-client -g`
38
+
39
+ ## Commands <!-- {docsify-remove} -->
40
+
41
+ List of all commands is available [here](/docs/commands.md).
42
+
43
+ ### Demo publish <!-- {docsify-remove} -->
44
+
45
+ <p align="center">
46
+   <img src="https://docs.trmregistry.com/_media/publish.gif" />
47
+ </p>
48
+
49
+ ### Demo install <!-- {docsify-remove} -->
50
+
51
+ <p align="center">
52
+   <img src="https://docs.trmregistry.com/_media/install.gif" />
53
+ </p>
54
+
55
+ # Contributing <!-- {docsify-remove} -->
56
+
57
+ Like every other TRM open-source projects, contributions are always welcomed ❤️.
58
+
59
+ Make sure to open an issue first.
60
+
61
+ Contributions will be merged upon approval.
62
+
63
+ [Click here](https://docs.trmregistry.com/#/CONTRIBUTING) for the full list of TRM contribution guidelines.
64
+
65
+ [<img src="https://trmregistry.com/public/contributors?image=true">](https://docs.trmregistry.com/#/?id=contributors)
package/changelog.txt CHANGED
@@ -1,83 +1,95 @@
1
- trm-client changelog
2
- =================
3
-
4
- Legend
5
- ------
6
- * : fixed
7
- ! : changed
8
- + : added
9
- - : removed
10
-
11
- 2025-07-29 v4.9.1
12
- -------------------
13
-
14
- ! trm-core ^7.4.1
15
- ! trm-commons ^2.0.0
16
-
17
- 2025-07-29 v4.9.0
18
- -------------------
19
-
20
- + handle registry unauthorized error
21
- ! trm-core ^7.4.0
22
- ! trm-commons ^1.1.0
23
-
24
- 2025-06-04 v4.8.0
25
- -------------------
26
-
27
- ! trm-core ^7.2.1
28
- ! overwrite flag in install/update ignores existing objects replace
29
-
30
- 2025-06-03 v4.7.0
31
- -------------------
32
-
33
- ! trm-core ^7.0.0
34
-
35
- 2025-05-29 v4.6.1
36
- -------------------
37
-
38
- ! logging error changes
39
- ! trm-core ^6.9.0
40
- + landscape transport to list and view command
41
-
42
- 2025-05-08 v4.6.0
43
- -------------------
44
-
45
- ! trm-core ^6.8.0
46
- * saprouter in alias
47
-
48
- 2025-05-08 v4.5.0
49
- -------------------
50
-
51
- ! trm-core ^6.7.0
52
- ! error handling
53
- * alias command/saprouter alias save
54
- * fix connection validators
55
-
56
- 2025-04-28 v4.4.1
57
- -------------------
58
-
59
- * node-r3trans version read
60
-
61
- 2025-04-28 v4.4.0
62
- -------------------
63
-
64
- ! trm-core ^6.5.0
65
- ! trm-commons ^1.0.0
66
-
67
- 2025-04-28 v4.3.0
68
- -------------------
69
-
70
- ! trm-core ^6.4.1
71
-
72
- 2025-04-23 v4.2.1
73
- -------------------
74
-
75
- * node-r3trans version read
76
-
77
- 2025-02-26 v4.2.0
78
- -------------------
79
-
80
- ! connect to registry via option
81
- - trm dependencies on client
82
- + content command
1
+ trm-client changelog
2
+ =================
3
+
4
+ Legend
5
+ ------
6
+ * : fixed
7
+ ! : changed
8
+ + : added
9
+ - : removed
10
+
11
+ 2025-08-13 v4.10.0
12
+ -------------------
13
+
14
+ ! trm-core ^7.4.5
15
+ + support for darwin os
16
+ + support for r3trans dockerized
17
+
18
+ 2025-07-30 v4.9.2
19
+ -------------------
20
+
21
+ ! trm-commons ^2.0.0 as peer dependency and dependency
22
+
23
+ 2025-07-29 v4.9.1
24
+ -------------------
25
+
26
+ ! trm-core ^7.4.1
27
+ ! trm-commons ^2.0.0
28
+
29
+ 2025-07-29 v4.9.0
30
+ -------------------
31
+
32
+ + handle registry unauthorized error
33
+ ! trm-core ^7.4.0
34
+ ! trm-commons ^1.1.0
35
+
36
+ 2025-06-04 v4.8.0
37
+ -------------------
38
+
39
+ ! trm-core ^7.2.1
40
+ ! overwrite flag in install/update ignores existing objects replace
41
+
42
+ 2025-06-03 v4.7.0
43
+ -------------------
44
+
45
+ ! trm-core ^7.0.0
46
+
47
+ 2025-05-29 v4.6.1
48
+ -------------------
49
+
50
+ ! logging error changes
51
+ ! trm-core ^6.9.0
52
+ + landscape transport to list and view command
53
+
54
+ 2025-05-08 v4.6.0
55
+ -------------------
56
+
57
+ ! trm-core ^6.8.0
58
+ * saprouter in alias
59
+
60
+ 2025-05-08 v4.5.0
61
+ -------------------
62
+
63
+ ! trm-core ^6.7.0
64
+ ! error handling
65
+ * alias command/saprouter alias save
66
+ * fix connection validators
67
+
68
+ 2025-04-28 v4.4.1
69
+ -------------------
70
+
71
+ * node-r3trans version read
72
+
73
+ 2025-04-28 v4.4.0
74
+ -------------------
75
+
76
+ ! trm-core ^6.5.0
77
+ ! trm-commons ^1.0.0
78
+
79
+ 2025-04-28 v4.3.0
80
+ -------------------
81
+
82
+ ! trm-core ^6.4.1
83
+
84
+ 2025-04-23 v4.2.1
85
+ -------------------
86
+
87
+ * node-r3trans version read
88
+
89
+ 2025-02-26 v4.2.0
90
+ -------------------
91
+
92
+ ! connect to registry via option
93
+ - trm dependencies on client
94
+ + content command
83
95
  + pack/import command
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.addRegistry = void 0;
12
+ exports.addRegistry = addRegistry;
13
13
  const trm_core_1 = require("trm-core");
14
14
  const registryAlias_1 = require("../registryAlias");
15
15
  const trm_commons_1 = require("trm-commons");
@@ -62,4 +62,3 @@ function addRegistry(commandArgs) {
62
62
  }
63
63
  });
64
64
  }
65
- exports.addRegistry = addRegistry;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.alias = void 0;
12
+ exports.alias = alias;
13
13
  const systemAlias_1 = require("../systemAlias");
14
14
  const createAlias_1 = require("./createAlias");
15
15
  const deleteAlias_1 = require("./deleteAlias");
@@ -265,4 +265,3 @@ function alias(commandArgs) {
265
265
  }
266
266
  });
267
267
  }
268
- exports.alias = alias;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.check = void 0;
12
+ exports.check = check;
13
13
  const trm_core_1 = require("trm-core");
14
14
  const commons_1 = require("./commons");
15
15
  const trm_commons_1 = require("trm-commons");
@@ -85,4 +85,3 @@ function check(commandArgs) {
85
85
  }
86
86
  });
87
87
  }
88
- exports.check = check;
@@ -12,12 +12,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.viewRegistryPackage = void 0;
15
+ exports.viewRegistryPackage = viewRegistryPackage;
16
16
  const CommandContext_1 = require("./CommandContext");
17
17
  const chalk_1 = __importDefault(require("chalk"));
18
18
  const trm_commons_1 = require("trm-commons");
19
- function viewRegistryPackage(packageName, print = true) {
20
- return __awaiter(this, void 0, void 0, function* () {
19
+ function viewRegistryPackage(packageName_1) {
20
+ return __awaiter(this, arguments, void 0, function* (packageName, print = true) {
21
21
  trm_commons_1.Logger.loading(`Reading registry data...`);
22
22
  var oRegistryView;
23
23
  try {
@@ -41,4 +41,3 @@ function viewRegistryPackage(packageName, print = true) {
41
41
  return oRegistryView;
42
42
  });
43
43
  }
44
- exports.viewRegistryPackage = viewRegistryPackage;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
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
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
36
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
37
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -32,7 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
32
42
  });
33
43
  };
34
44
  Object.defineProperty(exports, "__esModule", { value: true });
35
- exports.compare = void 0;
45
+ exports.compare = compare;
36
46
  const fs = __importStar(require("fs"));
37
47
  const systemAlias_1 = require("../systemAlias");
38
48
  const prompts_1 = require("./prompts");
@@ -196,4 +206,3 @@ function compare(commandArgs) {
196
206
  trm_commons_1.Logger.table(tableHead, tableData);
197
207
  });
198
208
  }
199
- exports.compare = compare;
@@ -12,12 +12,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.content = void 0;
15
+ exports.content = content;
16
16
  const trm_core_1 = require("trm-core");
17
17
  const commons_1 = require("./commons");
18
18
  const utils_1 = require("../utils");
19
19
  const chalk_1 = __importDefault(require("chalk"));
20
20
  const trm_commons_1 = require("trm-commons");
21
+ const settings_1 = require("../settings");
21
22
  function content(commandArgs) {
22
23
  return __awaiter(this, void 0, void 0, function* () {
23
24
  trm_commons_1.Logger.loading(`Searching package "${commandArgs.package}"...`);
@@ -29,7 +30,11 @@ function content(commandArgs) {
29
30
  var iOtherEntries = 0;
30
31
  const packageContent = yield remotePackage.fetchRemoteContent(commandArgs.version, {
31
32
  tempDirPath: (0, utils_1.getTempFolder)(),
32
- r3transDirPath: commandArgs.r3transPath
33
+ r3transDirPath: commandArgs.r3transPath,
34
+ useDocker: settings_1.Settings.getInstance().data.r3transDocker,
35
+ dockerOptions: {
36
+ name: settings_1.Settings.getInstance().data.r3transDockerName
37
+ }
33
38
  });
34
39
  if (!commandArgs.all) {
35
40
  transports.TADIR = packageContent.TADIR.trkorr;
@@ -177,4 +182,3 @@ function content(commandArgs) {
177
182
  }
178
183
  });
179
184
  }
180
- exports.content = content;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.createAlias = void 0;
12
+ exports.createAlias = createAlias;
13
13
  const systemAlias_1 = require("../systemAlias");
14
14
  const prompts_1 = require("./prompts");
15
15
  const utils_1 = require("../utils");
@@ -69,4 +69,3 @@ function createAlias(commandArgs) {
69
69
  }
70
70
  });
71
71
  }
72
- exports.createAlias = createAlias;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.deleteAlias = void 0;
12
+ exports.deleteAlias = deleteAlias;
13
13
  const trm_commons_1 = require("trm-commons");
14
14
  const systemAlias_1 = require("../systemAlias");
15
15
  function deleteAlias(commandArgs) {
@@ -20,4 +20,3 @@ function deleteAlias(commandArgs) {
20
20
  trm_commons_1.Logger.success(`Alias "${alias}" deleted.`);
21
21
  });
22
22
  }
23
- exports.deleteAlias = deleteAlias;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.findDependencies = void 0;
12
+ exports.findDependencies = findDependencies;
13
13
  const trm_commons_1 = require("trm-commons");
14
14
  const trm_core_1 = require("trm-core");
15
15
  function findDependencies(commandArgs) {
@@ -29,4 +29,3 @@ function findDependencies(commandArgs) {
29
29
  });
30
30
  });
31
31
  }
32
- exports.findDependencies = findDependencies;
@@ -9,11 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports._import = void 0;
12
+ exports._import = _import;
13
13
  const trm_core_1 = require("trm-core");
14
14
  const utils_1 = require("../utils");
15
15
  const commons_1 = require("./commons");
16
16
  const trm_commons_1 = require("trm-commons");
17
+ const settings_1 = require("../settings");
17
18
  const _parsePackageReplacementsArgument = (arg) => {
18
19
  if (arg) {
19
20
  try {
@@ -38,7 +39,11 @@ function _import(commandArgs) {
38
39
  contextData: {
39
40
  r3transOptions: {
40
41
  tempDirPath: (0, utils_1.getTempFolder)(),
41
- r3transDirPath: commandArgs.r3transPath
42
+ r3transDirPath: commandArgs.r3transPath,
43
+ useDocker: settings_1.Settings.getInstance().data.r3transDocker,
44
+ dockerOptions: {
45
+ name: settings_1.Settings.getInstance().data.r3transDockerName
46
+ }
42
47
  },
43
48
  noInquirer: commandArgs.noPrompts,
44
49
  systemPackages: packages,
@@ -80,4 +85,3 @@ function _import(commandArgs) {
80
85
  trm_commons_1.Logger.success(sOutput);
81
86
  });
82
87
  }
83
- exports._import = _import;
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.info = void 0;
15
+ exports.info = info;
16
16
  const trm_core_1 = require("trm-core");
17
17
  const utils_1 = require("../utils");
18
18
  const commons_1 = require("./commons");
@@ -197,4 +197,3 @@ function info(commandArgs) {
197
197
  }
198
198
  });
199
199
  }
200
- exports.info = info;
@@ -9,11 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.install = void 0;
12
+ exports.install = install;
13
13
  const trm_core_1 = require("trm-core");
14
14
  const utils_1 = require("../utils");
15
15
  const commons_1 = require("./commons");
16
16
  const trm_commons_1 = require("trm-commons");
17
+ const settings_1 = require("../settings");
17
18
  const _parsePackageReplacementsArgument = (arg) => {
18
19
  if (arg) {
19
20
  try {
@@ -37,7 +38,11 @@ function install(commandArgs) {
37
38
  contextData: {
38
39
  r3transOptions: {
39
40
  tempDirPath: (0, utils_1.getTempFolder)(),
40
- r3transDirPath: commandArgs.r3transPath
41
+ r3transDirPath: commandArgs.r3transPath,
42
+ useDocker: settings_1.Settings.getInstance().data.r3transDocker,
43
+ dockerOptions: {
44
+ name: settings_1.Settings.getInstance().data.r3transDockerName
45
+ }
41
46
  },
42
47
  noInquirer: commandArgs.noPrompts,
43
48
  systemPackages: packages,
@@ -81,4 +86,3 @@ function install(commandArgs) {
81
86
  trm_commons_1.Logger.success(sOutput);
82
87
  });
83
88
  }
84
- exports.install = install;
@@ -12,7 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.list = void 0;
15
+ exports.list = list;
16
16
  const trm_core_1 = require("trm-core");
17
17
  const commons_1 = require("./commons");
18
18
  const chalk_1 = __importDefault(require("chalk"));
@@ -68,4 +68,3 @@ function list(commandArgs) {
68
68
  }
69
69
  });
70
70
  }
71
- exports.list = list;
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.login = void 0;
12
+ exports.login = login;
13
13
  const registryAlias_1 = require("../registryAlias");
14
14
  const whoami_1 = require("./whoami");
15
15
  const commons_1 = require("./commons");
@@ -57,4 +57,3 @@ function login(commandArgs) {
57
57
  }
58
58
  });
59
59
  }
60
- exports.login = login;