Add command to verify safe-chain is intercepting the package managers commands

This commit is contained in:
Sander Declerck 2025-12-05 16:58:32 +01:00
parent 2dd215d620
commit 0a983f1542
No known key found for this signature in database

View file

@ -38,6 +38,11 @@ export async function main(args) {
// This parses all the --safe-chain arguments and removes them from the args array // This parses all the --safe-chain arguments and removes them from the args array
args = initializeCliArguments(args); args = initializeCliArguments(args);
if (args[0] === "safe-chain-verify") {
ui.writeInformation("Safe-chain: Ok");
return 0;
}
if (shouldScanCommand(args)) { if (shouldScanCommand(args)) {
const commandScanResult = await scanCommand(args); const commandScanResult = await scanCommand(args);