Skip to content

Commit

Permalink
Clean up internal call definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed Jun 3, 2024
1 parent 94770e3 commit fb86cff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
1.2.1
=====

* (internal) Clean up internal call definitions.


1.2.0
=====

Expand Down
8 changes: 3 additions & 5 deletions bin/janus
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,15 @@ 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())
->setName("Janus")
->addArgument(
"command",
InputArgument::REQUIRED,
suggestedValues: array_keys($allowedCommands),
suggestedValues: $allowedCommands,
)
->setCode(
function (InputInterface $input, OutputInterface $output) : int
Expand Down Expand Up @@ -248,7 +246,7 @@ function printError (SymfonyStyle $io, string $message) : int
$io->listing(
array_map(
static fn (string $command) => "<fg=yellow>{$command}</>",
array_keys($allowedCommands),
$allowedCommands,
),
);

Expand Down

0 comments on commit fb86cff

Please sign in to comment.