From 5ab5fee130240580ec113e07e85f89c8b73151cf Mon Sep 17 00:00:00 2001 From: BitterPanda Date: Fri, 30 Jan 2026 14:25:20 +0100 Subject: [PATCH] add docs & collect-logs to safe-chain bin --- packages/safe-chain/bin/safe-chain.js | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/safe-chain/bin/safe-chain.js b/packages/safe-chain/bin/safe-chain.js index 6ecdabd..770362b 100755 --- a/packages/safe-chain/bin/safe-chain.js +++ b/packages/safe-chain/bin/safe-chain.js @@ -20,7 +20,10 @@ import { installUltimate, uninstallUltimate, } from "../src/installation/installUltimate.js"; -import { printUltimateLogs } from "../src/ultimate/printUltimateLogs.js"; +import { + collectLogs, + printUltimateLogs +} from "../src/ultimate/printUltimateLogs.js"; /** @type {string} */ // This checks the current file's dirname in a way that's compatible with: @@ -77,6 +80,10 @@ if (tool) { (async () => { await printUltimateLogs(); })(); + } else if (subCommand === "collect-logs") { + (async () => { + await collectLogs(); + })(); } else { (async () => { await installUltimate(); @@ -141,6 +148,16 @@ function writeHelp() { "safe-chain ultimate", )}: Install the ultimate version of safe-chain, enabling protection for more eco-systems.`, ); + ui.writeInformation( + `- ${chalk.cyan( + "safe-chain ultimate logs", + )}: Prints standard and error logs for safe-chain ultimate and it's proxy.`, + ); + ui.writeInformation( + `- ${chalk.cyan( + "safe-chain ultimate collect-logs", + )}: Creates a zip archive of safe-chain ultimate logs that can be shared with support.`, + ); ui.writeInformation( `- ${chalk.cyan( "safe-chain ultimate uninstall",