rename to troubleshooting-*

This commit is contained in:
bitterpanda 2026-01-30 15:16:39 +01:00
parent 38b7c51985
commit adcf609066
2 changed files with 7 additions and 10 deletions

View file

@ -20,10 +20,7 @@ import {
installUltimate,
uninstallUltimate,
} from "../src/installation/installUltimate.js";
import {
collectLogs,
printUltimateLogs
} from "../src/ultimate/printUltimateLogs.js";
import {printUltimateLogs, troubleshootingExport } from "../src/ultimate/ultimateTroubleshooting.js";
/** @type {string} */
// This checks the current file's dirname in a way that's compatible with:
@ -76,13 +73,13 @@ if (tool) {
(async () => {
await uninstallUltimate();
})();
} else if (subCommand === "logs") {
} else if (subCommand === "troubleshooting-logs") {
(async () => {
await printUltimateLogs();
})();
} else if (subCommand === "collect-logs") {
} else if (subCommand === "troubleshooting-export") {
(async () => {
await collectLogs();
await troubleshootingExport();
})();
} else {
(async () => {
@ -150,12 +147,12 @@ function writeHelp() {
);
ui.writeInformation(
`- ${chalk.cyan(
"safe-chain ultimate logs",
"safe-chain ultimate troubleshooting-logs",
)}: Prints standard and error logs for safe-chain ultimate and it's proxy.`,
);
ui.writeInformation(
`- ${chalk.cyan(
"safe-chain ultimate collect-logs",
"safe-chain ultimate troubleshooting-export",
)}: Creates a zip archive of safe-chain ultimate logs that can be shared with support.`,
);
ui.writeInformation(

View file

@ -22,7 +22,7 @@ export async function printUltimateLogs() {
);
}
export async function collectLogs() {
export async function troubleshootingExport() {
const { logDir } = getPathsPerPlatform();
return new Promise((resolve, reject) => {
if (!existsSync(logDir)) {