trm-client 4.9.2 → 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.
- package/LICENSE +20 -20
- package/README.md +65 -65
- package/changelog.txt +94 -87
- package/dist/commands/content.js +6 -1
- package/dist/commands/import.js +6 -1
- package/dist/commands/install.js +6 -1
- package/dist/index.js +11 -11
- package/dist/settings/Settings.js +7 -0
- package/dist/settings/SettingsData.d.ts +2 -0
- package/dist/utils/executeCommand.js +2 -2
- package/package.json +62 -62
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
|
-
[](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
|
|
4
|
-
[](https://github.com/RegestaItalia/trm-client)
|
|
5
|
-
[](https://www.npmjs.com/package/trm-client)
|
|
6
|
-
[](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
|
+
[](https://github.com/RegestaItalia/trm-docs/blob/main/CODE_OF_CONDUCT.md)
|
|
4
|
+
[](https://github.com/RegestaItalia/trm-client)
|
|
5
|
+
[](https://www.npmjs.com/package/trm-client)
|
|
6
|
+
[](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,88 +1,95 @@
|
|
|
1
|
-
trm-client changelog
|
|
2
|
-
=================
|
|
3
|
-
|
|
4
|
-
Legend
|
|
5
|
-
------
|
|
6
|
-
* : fixed
|
|
7
|
-
! : changed
|
|
8
|
-
+ : added
|
|
9
|
-
- : removed
|
|
10
|
-
|
|
11
|
-
2025-
|
|
12
|
-
-------------------
|
|
13
|
-
|
|
14
|
-
! trm-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
! trm-core ^7.4.
|
|
27
|
-
! trm-commons ^
|
|
28
|
-
|
|
29
|
-
2025-
|
|
30
|
-
-------------------
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
!
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
2025-05-
|
|
48
|
-
-------------------
|
|
49
|
-
|
|
50
|
-
!
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
!
|
|
58
|
-
*
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
|
88
95
|
+ pack/import command
|
package/dist/commands/content.js
CHANGED
|
@@ -18,6 +18,7 @@ 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;
|
package/dist/commands/import.js
CHANGED
|
@@ -14,6 +14,7 @@ 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,
|
package/dist/commands/install.js
CHANGED
|
@@ -14,6 +14,7 @@ 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,
|
package/dist/index.js
CHANGED
|
@@ -58,13 +58,13 @@ const ping = program.command(`ping`)
|
|
|
58
58
|
});
|
|
59
59
|
const publish = program.command(`publish <package> [version]`)
|
|
60
60
|
.description(`Publish package to registry.`)
|
|
61
|
-
.addHelpText(`before`, `When no version is defined, it will automatically set to:
|
|
62
|
-
- When it's the first publish: 1.0.0
|
|
63
|
-
- When it's already published: the latest available release with patch increased by 1
|
|
64
|
-
When it's the first publish, full manifest definition is asked.
|
|
65
|
-
When a release is already published, the latest available manifest is used but can be overwritten.
|
|
66
|
-
Translation transport is only generated for packages that contain one or more objects with translations (unless skipped by flag).
|
|
67
|
-
Customizing transport is only generated if a valid list of customizing transports is provided (unless skipped by flag).
|
|
61
|
+
.addHelpText(`before`, `When no version is defined, it will automatically set to:
|
|
62
|
+
- When it's the first publish: 1.0.0
|
|
63
|
+
- When it's already published: the latest available release with patch increased by 1
|
|
64
|
+
When it's the first publish, full manifest definition is asked.
|
|
65
|
+
When a release is already published, the latest available manifest is used but can be overwritten.
|
|
66
|
+
Translation transport is only generated for packages that contain one or more objects with translations (unless skipped by flag).
|
|
67
|
+
Customizing transport is only generated if a valid list of customizing transports is provided (unless skipped by flag).
|
|
68
68
|
If a default manifest with dependencies is provided in conjunction with the automatic dependency generation, results will be merged.`)
|
|
69
69
|
.option(`-p, --private`, `Publish package with private visibility.`)
|
|
70
70
|
.option(`-np, --noPrompts`, `No prompts (will force some decisions).`, false)
|
|
@@ -93,9 +93,9 @@ If a default manifest with dependencies is provided in conjunction with the auto
|
|
|
93
93
|
});
|
|
94
94
|
const pack = program.command(`pack <package> [version]`)
|
|
95
95
|
.description(`Save package locally.`)
|
|
96
|
-
.addHelpText(`before`, `When no version is defined, it will automatically set to 1.0.0.
|
|
97
|
-
Translation transport is only generated for packages that contain one or more objects with translations (unless skipped by flag).
|
|
98
|
-
Customizing transport is only generated if a valid list of customizing transports is provided (unless skipped by flag).
|
|
96
|
+
.addHelpText(`before`, `When no version is defined, it will automatically set to 1.0.0.
|
|
97
|
+
Translation transport is only generated for packages that contain one or more objects with translations (unless skipped by flag).
|
|
98
|
+
Customizing transport is only generated if a valid list of customizing transports is provided (unless skipped by flag).
|
|
99
99
|
If a default manifest with dependencies is provided in conjunction with the automatic dependency generation, results will be merged.`)
|
|
100
100
|
.option(`-o, --output <<outputPath>>`, `Output path.`)
|
|
101
101
|
.option(`-np, --noPrompts`, `No prompts (will force some decisions).`, false)
|
|
@@ -196,7 +196,7 @@ const _import = program.command(`import <file>`)
|
|
|
196
196
|
});
|
|
197
197
|
const view = program.command(`view <package>`)
|
|
198
198
|
.description(`View package.`)
|
|
199
|
-
.addHelpText(`before`, `Shows package details.
|
|
199
|
+
.addHelpText(`before`, `Shows package details.
|
|
200
200
|
If the package is not found on the system, it will automatically fall back to the data provided by the registry, granted it exists.`);
|
|
201
201
|
(0, utils_1.registerCommand)(view, {
|
|
202
202
|
requiresConnection: true,
|
|
@@ -41,6 +41,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
41
41
|
const utils_1 = require("../utils");
|
|
42
42
|
const fs = __importStar(require("fs"));
|
|
43
43
|
const ini = __importStar(require("ini"));
|
|
44
|
+
const trm_commons_1 = require("trm-commons");
|
|
44
45
|
const SETTINGS_FILE_NAME = "settings.ini";
|
|
45
46
|
const defaultData = {
|
|
46
47
|
loggerType: 'CLI',
|
|
@@ -49,6 +50,12 @@ const defaultData = {
|
|
|
49
50
|
class Settings {
|
|
50
51
|
constructor() {
|
|
51
52
|
this.data = this.getSettings();
|
|
53
|
+
if (typeof (this.data.r3transDocker) !== 'boolean') {
|
|
54
|
+
if (process.platform === 'darwin') {
|
|
55
|
+
trm_commons_1.Logger.info(`R3trans defaults to docker in darwin os.`, true);
|
|
56
|
+
this.data.r3transDocker = true;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
52
59
|
}
|
|
53
60
|
set(key, value) {
|
|
54
61
|
if (this.data[key] === undefined) {
|
|
@@ -90,8 +90,8 @@ function executeCommand(args) {
|
|
|
90
90
|
try {
|
|
91
91
|
trm_commons_1.Inquirer.inquirer = _getInquirer(InquirerType.CLI);
|
|
92
92
|
trm_commons_1.Logger.logger = _getLogger(args.logType, args.debug, args.logOutputFolder);
|
|
93
|
-
if (
|
|
94
|
-
trm_commons_1.Logger.warning(`Running on untested OS ${process.platform}! Some features aren't tested yet.`);
|
|
93
|
+
if (process.platform !== 'win32' && process.platform !== 'darwin') {
|
|
94
|
+
trm_commons_1.Logger.warning(`Running on untested OS "${process.platform}"! Some features aren't tested yet.`);
|
|
95
95
|
}
|
|
96
96
|
const requiresConnection = args.requiresConnection;
|
|
97
97
|
const requiresTrmDependencies = args.requiresTrmDependencies;
|
package/package.json
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "trm-client",
|
|
3
|
-
"version": "4.
|
|
4
|
-
"description": "TRM (Transport Request Manager) Client",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"changelog.txt",
|
|
9
|
-
"dist",
|
|
10
|
-
"!dist/test.js",
|
|
11
|
-
"!dist/test.js.map",
|
|
12
|
-
"!dist/test.d.ts",
|
|
13
|
-
"!dist/.env",
|
|
14
|
-
"!dist/dev_rfc.log"
|
|
15
|
-
],
|
|
16
|
-
"bin": {
|
|
17
|
-
"trm": "dist/index.js"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"cleanBuild": "rimraf dist/",
|
|
21
|
-
"build": "npm run cleanBuild && tsc --sourceMap false",
|
|
22
|
-
"prepublishOnly": "npm run build"
|
|
23
|
-
},
|
|
24
|
-
"keywords": [
|
|
25
|
-
"trm",
|
|
26
|
-
"abap"
|
|
27
|
-
],
|
|
28
|
-
"homepage": "https://www.trmregistry.com",
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "git+https://github.com/RegestaItalia/trm-client.git"
|
|
32
|
-
},
|
|
33
|
-
"author": {
|
|
34
|
-
"name": "Simone Gaffurini",
|
|
35
|
-
"email": "simone.gaffurini@regestaitalia.it"
|
|
36
|
-
},
|
|
37
|
-
"license": "MIT",
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@esm2cjs/normalize-url": "^8.0.0",
|
|
40
|
-
"chalk": "^4.1.2",
|
|
41
|
-
"commander": "^11.0.0",
|
|
42
|
-
"dotenv": "^16.3.1",
|
|
43
|
-
"get-latest-version": "^5.1.0",
|
|
44
|
-
"get-root-path": "^2.0.2",
|
|
45
|
-
"ini": "^4.1.1",
|
|
46
|
-
"semver": "^7.5.4",
|
|
47
|
-
"trm-commons": "^2.0.0",
|
|
48
|
-
"trm-core": "^7.4.
|
|
49
|
-
"trm-registry-types": "^1.2.0",
|
|
50
|
-
"xml2js": "^0.6.2"
|
|
51
|
-
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"trm-commons": "^2.0.0"
|
|
54
|
-
},
|
|
55
|
-
"devDependencies": {
|
|
56
|
-
"@types/ini": "^1.3.31",
|
|
57
|
-
"@types/node": "^20.4.8",
|
|
58
|
-
"@types/semver": "^7.5.3",
|
|
59
|
-
"@types/xml2js": "^0.4.11",
|
|
60
|
-
"rimraf": "^6.0.1"
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "trm-client",
|
|
3
|
+
"version": "4.10.0",
|
|
4
|
+
"description": "TRM (Transport Request Manager) Client",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"changelog.txt",
|
|
9
|
+
"dist",
|
|
10
|
+
"!dist/test.js",
|
|
11
|
+
"!dist/test.js.map",
|
|
12
|
+
"!dist/test.d.ts",
|
|
13
|
+
"!dist/.env",
|
|
14
|
+
"!dist/dev_rfc.log"
|
|
15
|
+
],
|
|
16
|
+
"bin": {
|
|
17
|
+
"trm": "dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"cleanBuild": "rimraf dist/",
|
|
21
|
+
"build": "npm run cleanBuild && tsc --sourceMap false",
|
|
22
|
+
"prepublishOnly": "npm run build"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"trm",
|
|
26
|
+
"abap"
|
|
27
|
+
],
|
|
28
|
+
"homepage": "https://www.trmregistry.com",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "git+https://github.com/RegestaItalia/trm-client.git"
|
|
32
|
+
},
|
|
33
|
+
"author": {
|
|
34
|
+
"name": "Simone Gaffurini",
|
|
35
|
+
"email": "simone.gaffurini@regestaitalia.it"
|
|
36
|
+
},
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@esm2cjs/normalize-url": "^8.0.0",
|
|
40
|
+
"chalk": "^4.1.2",
|
|
41
|
+
"commander": "^11.0.0",
|
|
42
|
+
"dotenv": "^16.3.1",
|
|
43
|
+
"get-latest-version": "^5.1.0",
|
|
44
|
+
"get-root-path": "^2.0.2",
|
|
45
|
+
"ini": "^4.1.1",
|
|
46
|
+
"semver": "^7.5.4",
|
|
47
|
+
"trm-commons": "^2.0.0",
|
|
48
|
+
"trm-core": "^7.4.5",
|
|
49
|
+
"trm-registry-types": "^1.2.0",
|
|
50
|
+
"xml2js": "^0.6.2"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"trm-commons": "^2.0.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/ini": "^1.3.31",
|
|
57
|
+
"@types/node": "^20.4.8",
|
|
58
|
+
"@types/semver": "^7.5.3",
|
|
59
|
+
"@types/xml2js": "^0.4.11",
|
|
60
|
+
"rimraf": "^6.0.1"
|
|
61
|
+
}
|
|
62
|
+
}
|