mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Update commands for ultimate
This commit is contained in:
parent
a016483057
commit
7218d778cf
2 changed files with 27 additions and 21 deletions
|
|
@ -66,14 +66,17 @@ if (tool) {
|
|||
process.exit(0);
|
||||
} else if (command === "setup") {
|
||||
setup();
|
||||
} else if (command === "--ultimate") {
|
||||
(async () => {
|
||||
await installUltimate();
|
||||
})();
|
||||
} else if (command === "--uninstall-ultimate") {
|
||||
(async () => {
|
||||
await uninstallUltimate();
|
||||
})();
|
||||
} else if (command === "ultimate") {
|
||||
const subCommand = process.argv[3];
|
||||
if (subCommand === "uninstall") {
|
||||
(async () => {
|
||||
await uninstallUltimate();
|
||||
})();
|
||||
} else {
|
||||
(async () => {
|
||||
await installUltimate();
|
||||
})();
|
||||
}
|
||||
} else if (command === "teardown") {
|
||||
teardownDirectories();
|
||||
teardown();
|
||||
|
|
@ -100,7 +103,7 @@ function writeHelp() {
|
|||
ui.writeInformation(
|
||||
`Available commands: ${chalk.cyan("setup")}, ${chalk.cyan(
|
||||
"teardown",
|
||||
)}, ${chalk.cyan("setup-ci")}, ${chalk.cyan("help")}, ${chalk.cyan(
|
||||
)}, ${chalk.cyan("setup-ci")}, ${chalk.cyan("ultimate")}, ${chalk.cyan("help")}, ${chalk.cyan(
|
||||
"--version",
|
||||
)}`,
|
||||
);
|
||||
|
|
@ -110,16 +113,6 @@ function writeHelp() {
|
|||
"safe-chain setup",
|
||||
)}: This will setup your shell to wrap safe-chain around npm, npx, yarn, pnpm, pnpx, bun, bunx, pip and pip3.`,
|
||||
);
|
||||
ui.writeInformation(
|
||||
`- ${chalk.cyan(
|
||||
"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",
|
||||
|
|
@ -136,6 +129,19 @@ function writeHelp() {
|
|||
)}): Display the current version of safe-chain.`,
|
||||
);
|
||||
ui.emptyLine();
|
||||
ui.writeInformation(chalk.bold("Ultimate commands:"));
|
||||
ui.emptyLine();
|
||||
ui.writeInformation(
|
||||
`- ${chalk.cyan(
|
||||
"safe-chain ultimate",
|
||||
)}: Install the ultimate version of safe-chain, enabling protection for more eco-systems.`,
|
||||
);
|
||||
ui.writeInformation(
|
||||
`- ${chalk.cyan(
|
||||
"safe-chain ultimate uninstall",
|
||||
)}: Uninstall the ultimate version of safe-chain.`,
|
||||
);
|
||||
ui.emptyLine();
|
||||
}
|
||||
|
||||
async function getVersion() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue