@sap/cli-core 2024.13.0 → 2024.15.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/CHANGELOG.md +10 -0
- package/config/index.js +3 -0
- package/dwc/run.js +3 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 2024.15.0
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- When running `<cli> --version` in the past, the CLI exited with exit code `1`. Since this version the CLI now exits with exit code `0` instead.
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- When using option `--input` with sequential commands and an array is provided as a value, the previous provided array is not overridden, but the previous data was merged with the current data.
|
|
17
|
+
|
|
8
18
|
## 2024.11.0
|
|
9
19
|
|
|
10
20
|
### Added
|
package/config/index.js
CHANGED
|
@@ -81,6 +81,9 @@ const set = (c) => {
|
|
|
81
81
|
config.tenant = config.newTenant;
|
|
82
82
|
delete config.newTenant;
|
|
83
83
|
}
|
|
84
|
+
if (c.data) {
|
|
85
|
+
config.data = c.data;
|
|
86
|
+
}
|
|
84
87
|
if (!lodash_1.default.isEqual(prev, config)) {
|
|
85
88
|
trace("configuration changed. previous: %s, current: %s", JSON.stringify(prev), JSON.stringify(config));
|
|
86
89
|
}
|
package/dwc/run.js
CHANGED
|
@@ -15,13 +15,15 @@ const run = async () => {
|
|
|
15
15
|
await (0, dwc_1.executeCommand)();
|
|
16
16
|
}
|
|
17
17
|
catch (err) {
|
|
18
|
-
if (err.code === "commander.helpDisplayed"
|
|
18
|
+
if (err.code === "commander.helpDisplayed" ||
|
|
19
|
+
err.code === "commander.version") {
|
|
19
20
|
debug("Error while running CLI", err.stack);
|
|
20
21
|
}
|
|
21
22
|
else {
|
|
22
23
|
error("Error while running CLI", err.stack);
|
|
23
24
|
exitCode = 1;
|
|
24
25
|
}
|
|
26
|
+
exitCode = err.exitCode ?? exitCode;
|
|
25
27
|
}
|
|
26
28
|
finally {
|
|
27
29
|
await (0, utils_1.compareEtags)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cli-core",
|
|
3
|
-
"version": "2024.
|
|
3
|
+
"version": "2024.15.0",
|
|
4
4
|
"description": "Command-Line Interface (CLI) Core Module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "SAP SE",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"cli-core"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"ajv": "8.
|
|
21
|
-
"axios": "1.7.
|
|
20
|
+
"ajv": "8.16.0",
|
|
21
|
+
"axios": "1.7.2",
|
|
22
22
|
"commander": "12.1.0",
|
|
23
23
|
"compare-versions": "6.1.0",
|
|
24
24
|
"config": "3.3.11",
|