fix(cli): fix 13 CLI bugs — exit codes, sync tar fallback, variable encryption, JSON output (#8582)

* fix(cli): fix 13 CLI bugs — exit codes, sync tar fallback, variable encryption, JSON output, parent dirs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(cli): address PR review — TarAsZip.folder(), retry timeout, stderr hint

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(cli): update resource-type list test to handle empty state message

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-03-28 10:46:01 +00:00
committed by GitHub
parent e34acafce5
commit 38acaa3653
14 changed files with 232 additions and 58 deletions

View File

@@ -139,8 +139,10 @@ describe("resource-type commands", () => {
);
expect(result.code).toEqual(0);
// Table headers should be present
expect(result.stdout).toContain("Name");
// When empty, shows helpful message; when populated, shows table with Name header
const hasTable = result.stdout.includes("Name");
const hasEmptyMessage = result.stdout.includes("No custom resource types");
expect(hasTable || hasEmptyMessage).toBe(true);
});
});