add docs & collect-logs to safe-chain bin

This commit is contained in:
BitterPanda 2026-01-30 14:25:20 +01:00
parent 460be68cd3
commit 5ab5fee130

View file

@ -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",