mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Add uninstallation process for ultimate
This commit is contained in:
parent
8e966b0609
commit
1058630dd1
4 changed files with 167 additions and 12 deletions
|
|
@ -16,7 +16,10 @@ import path from "path";
|
|||
import { fileURLToPath } from "url";
|
||||
import fs from "fs";
|
||||
import { knownAikidoTools } from "../src/shell-integration/helpers.js";
|
||||
import { installUltimate } from "../src/installation/installUltimate.js";
|
||||
import {
|
||||
installUltimate,
|
||||
uninstallUltimate,
|
||||
} from "../src/installation/installUltimate.js";
|
||||
|
||||
/** @type {string} */
|
||||
// This checks the current file's dirname in a way that's compatible with:
|
||||
|
|
@ -67,6 +70,10 @@ if (tool) {
|
|||
(async () => {
|
||||
await installUltimate();
|
||||
})();
|
||||
} else if (command === "--uninstall-ultimate") {
|
||||
(async () => {
|
||||
await uninstallUltimate();
|
||||
})();
|
||||
} else if (command === "teardown") {
|
||||
teardownDirectories();
|
||||
teardown();
|
||||
|
|
@ -108,6 +115,11 @@ function writeHelp() {
|
|||
"safe-chain --ultimate",
|
||||
)}: This installs the ultimate version of safe-chain, enabling protection for more eco-systems (vscode).`,
|
||||
);
|
||||
ui.writeInformation(
|
||||
`- ${chalk.cyan(
|
||||
"safe-chain --uninstall-ultimate",
|
||||
)}: This uninstalls the ultimate version of safe-chain.`,
|
||||
);
|
||||
ui.writeInformation(
|
||||
`- ${chalk.cyan(
|
||||
"safe-chain teardown",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue