setName('ocm:keys:activate') ->setDescription('promote the staged Ed25519 key to active; the previous active key moves to retiring'); } #[\Override] protected function execute(InputInterface $input, OutputInterface $output): int { try { $this->signatoryManager->activateStagedEd25519Key(); } catch (\RuntimeException $e) { $output->writeln('' . $e->getMessage() . ''); return 1; } $output->writeln('Staged key promoted to active.'); $output->writeln('Run occ ocm:keys:retire once any in-flight signatures using the previous key have been verified.'); return 0; } }