mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
rename to troubleshooting-*
This commit is contained in:
parent
1adb2b34ca
commit
4079bff705
2 changed files with 7 additions and 10 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
Loading…
Add table
Add a link
Reference in a new issue