mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
add docs & collect-logs to safe-chain bin
This commit is contained in:
parent
460be68cd3
commit
5ab5fee130
1 changed files with 18 additions and 1 deletions
|
|
@ -20,7 +20,10 @@ import {
|
||||||
installUltimate,
|
installUltimate,
|
||||||
uninstallUltimate,
|
uninstallUltimate,
|
||||||
} from "../src/installation/installUltimate.js";
|
} from "../src/installation/installUltimate.js";
|
||||||
import { printUltimateLogs } from "../src/ultimate/printUltimateLogs.js";
|
import {
|
||||||
|
collectLogs,
|
||||||
|
printUltimateLogs
|
||||||
|
} from "../src/ultimate/printUltimateLogs.js";
|
||||||
|
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
// This checks the current file's dirname in a way that's compatible with:
|
// This checks the current file's dirname in a way that's compatible with:
|
||||||
|
|
@ -77,6 +80,10 @@ if (tool) {
|
||||||
(async () => {
|
(async () => {
|
||||||
await printUltimateLogs();
|
await printUltimateLogs();
|
||||||
})();
|
})();
|
||||||
|
} else if (subCommand === "collect-logs") {
|
||||||
|
(async () => {
|
||||||
|
await collectLogs();
|
||||||
|
})();
|
||||||
} else {
|
} else {
|
||||||
(async () => {
|
(async () => {
|
||||||
await installUltimate();
|
await installUltimate();
|
||||||
|
|
@ -141,6 +148,16 @@ function writeHelp() {
|
||||||
"safe-chain ultimate",
|
"safe-chain ultimate",
|
||||||
)}: Install the ultimate version of safe-chain, enabling protection for more eco-systems.`,
|
)}: 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(
|
ui.writeInformation(
|
||||||
`- ${chalk.cyan(
|
`- ${chalk.cyan(
|
||||||
"safe-chain ultimate uninstall",
|
"safe-chain ultimate uninstall",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue