From 22b43da255379427f3bb866773eac87860be3d16 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Sat, 15 Jun 2024 13:13:41 -0700 Subject: [PATCH] feat(stat-bundle): show CLI to explode the bundle --- packages/agoric-cli/src/lib/bundles.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/agoric-cli/src/lib/bundles.js b/packages/agoric-cli/src/lib/bundles.js index d9a8cf8b6ed..c9a8ef9d800 100644 --- a/packages/agoric-cli/src/lib/bundles.js +++ b/packages/agoric-cli/src/lib/bundles.js @@ -80,6 +80,10 @@ export const statBundle = async bundleFilename => { console.table(byPackage); console.log('total size:', totalSize); + console.log('\nTo explore the contents:\n'); + console.log( + ` DIR=$(mktemp -d); cat ${bundleFilename} | jq -r .endoZipBase64 | base64 -d | tar xC $DIR; open $DIR`, + ); }; /** @param {string} path */