From dc09d871ed25a3b71d69aecfbc850246ec7093aa Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Tue, 17 Feb 2026 12:33:25 +0100 Subject: [PATCH] Remove ultimate commands (not ready yet) --- packages/safe-chain/bin/safe-chain.js | 72 --------------------------- 1 file changed, 72 deletions(-) diff --git a/packages/safe-chain/bin/safe-chain.js b/packages/safe-chain/bin/safe-chain.js index 2913d28..3bc8a5a 100755 --- a/packages/safe-chain/bin/safe-chain.js +++ b/packages/safe-chain/bin/safe-chain.js @@ -70,39 +70,6 @@ if (tool) { process.exit(0); } else if (command === "setup") { setup(); -} else if (command === "ultimate") { - const cliArgs = initializeCliArguments(process.argv.slice(2)); - const subCommand = cliArgs[1]; - if (subCommand === "uninstall") { - guardCliArgsMaxLenght(2, cliArgs, "safe-chain ultimate uninstall"); - (async () => { - await uninstallUltimate(); - })(); - } else if (subCommand === "troubleshooting-logs") { - guardCliArgsMaxLenght( - 2, - cliArgs, - "safe-chain ultimate troubleshooting-logs", - ); - (async () => { - await printUltimateLogs(); - })(); - } else if (subCommand === "troubleshooting-export") { - guardCliArgsMaxLenght( - 2, - cliArgs, - "safe-chain ultimate troubleshooting-export", - ); - (async () => { - await troubleshootingExport(); - })(); - } else { - guardCliArgsMaxLenght(1, cliArgs, "safe-chain ultimate"); - // Install command = when no subcommand is provided (safe-chain ultimate) - (async () => { - await installUltimate(); - })(); - } } else if (command === "teardown") { teardown(); teardownDirectories(); @@ -121,22 +88,6 @@ if (tool) { process.exit(1); } -/** - * @param {Number} maxLength - * @param {String[]} args - * @param {String} command - */ -function guardCliArgsMaxLenght(maxLength, args, command) { - if (args.length > maxLength) { - ui.writeError(`Unexpected number of arguments for command ${command}.`); - ui.emptyLine(); - - writeHelp(); - - process.exit(1); - } -} - function writeHelp() { ui.writeInformation( chalk.bold("Usage: ") + chalk.cyan("safe-chain "), @@ -171,29 +122,6 @@ 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 troubleshooting-logs", - )}: Prints standard and error logs for safe-chain ultimate and it's proxy.`, - ); - ui.writeInformation( - `- ${chalk.cyan( - "safe-chain ultimate troubleshooting-export", - )}: Creates a zip archive of useful data for troubleshooting safe-chain ultimate, that can be shared with our support team.`, - ); - ui.writeInformation( - `- ${chalk.cyan( - "safe-chain ultimate uninstall", - )}: Uninstall the ultimate version of safe-chain.`, - ); - ui.emptyLine(); } async function getVersion() {