$io =
new SymfonyStyle($input,
$output instanceof ConsoleOutputInterface ?
$output->
getErrorOutput() :
$output);
$vault =
$input->
getOption('local'
) ?
$this->localVault :
$this->vault;
if (null ===
$vault) { $io->
success('The local vault is disabled.'
);
return 1;
} if ($vault->
remove($name =
$input->
getArgument('name'
))) { $io->
success($vault->
getLastMessage() ?? 'Secret was removed from the vault.'
);
} else { $io->
comment($vault->
getLastMessage() ?? 'Secret was not found in the vault.'
);
} if ($this->vault ===
$vault && null !==
$this->localVault->
reveal($name)) { $io->
comment('Note that this secret is overridden in the local vault.'
);
} return 0;
}