@nitra/cfr 0.6.0 → 0.6.1
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/bin/cli.mjs +6 -2
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -43,9 +43,13 @@ async function main(argv) {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
main(process.argv.slice(2)).then(
|
|
46
|
-
|
|
46
|
+
// Не викликаємо process.exit(): він примусово обриває pending stdout
|
|
47
|
+
// writes. Для великого `kcc-inventory --json | jq ...` це давало
|
|
48
|
+
// неповний JSON, хоча scan уже завершився. exitCode зберігає статус,
|
|
49
|
+
// але дає Node дописати pipe перед природним завершенням процесу.
|
|
50
|
+
(code) => { process.exitCode = code; },
|
|
47
51
|
(err) => {
|
|
48
52
|
console.error(`✗ ${err.message || err}`);
|
|
49
|
-
process.
|
|
53
|
+
process.exitCode = 1;
|
|
50
54
|
},
|
|
51
55
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nitra/cfr",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "A handful of small k8s/GitOps CLI utilities: `check` verifies every YAML file in a Kustomize directory is listed in kustomization.yaml's explicit resources: (and vice versa); `kcc-inventory` diffs a GCP Config Connector namespace against the live project to find drift; `get-resources` is that same scan without the diff.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kustomize",
|