From fb86cffd0fb491a1b5302162f75117116a3a3557 Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Mon, 3 Jun 2024 17:44:28 +0200 Subject: [PATCH] Clean up internal call definitions --- CHANGELOG.md | 6 ++++++ bin/janus | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3a7802..03af916 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +1.2.1 +===== + +* (internal) Clean up internal call definitions. + + 1.2.0 ===== diff --git a/bin/janus b/bin/janus index 103fe19..4a2e51d 100755 --- a/bin/janus +++ b/bin/janus @@ -16,9 +16,7 @@ require_once $_composer_autoload_path ?? (__DIR__ . '/../vendor/autoload.php'); $input = new ArgvInput(); $output = new ConsoleOutput(); -$allowedCommands = [ - "init-symfony" => null, -]; +$allowedCommands = ["init-symfony", "init-library"]; (new SingleCommandApplication()) @@ -26,7 +24,7 @@ $allowedCommands = [ ->addArgument( "command", InputArgument::REQUIRED, - suggestedValues: array_keys($allowedCommands), + suggestedValues: $allowedCommands, ) ->setCode( function (InputInterface $input, OutputInterface $output) : int @@ -248,7 +246,7 @@ function printError (SymfonyStyle $io, string $message) : int $io->listing( array_map( static fn (string $command) => "{$command}", - array_keys($allowedCommands), + $allowedCommands, ), );