Document safe-chain-verify

This commit is contained in:
Sander Declerck 2025-12-05 18:04:20 +01:00
parent 0a983f1542
commit e5ddc47495
No known key found for this signature in database
3 changed files with 47 additions and 4 deletions

View file

@ -38,6 +38,9 @@ export async function main(args) {
// This parses all the --safe-chain arguments and removes them from the args array
args = initializeCliArguments(args);
// Handle verification command to test if safe-chain is intercepting package manager commands
// Users can run: npm safe-chain-verify, yarn safe-chain-verify, pip safe-chain-verify, etc.
// This confirms the shell integration is working correctly without performing any package operations
if (args[0] === "safe-chain-verify") {
ui.writeInformation("Safe-chain: Ok");
return 0;