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
3bec78abf5
commit
dbfff46d3d
1 changed files with 18 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue