Skip to content

Commit 98d4fce

Browse files
committed
change entrypoint class name.
1 parent dbdc3f5 commit 98d4fce

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
### Features
4+
5+
* Change entrypoint class name.
6+
37
### Bug fix
48

59
* Moved command-line option parsing logic into separate classes for better maintainability

bin/php-variable-hard-usage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php
1010
}
1111
}
1212

13-
use Smeghead\PhpVariableHardUsage\Command;
13+
use Smeghead\PhpVariableHardUsage\EntryPoint;
1414
use Smeghead\PhpVariableHardUsage\Option\GetOptions;
1515

1616
$getOptions = new GetOptions($_SERVER['argv']);
1717
$result = $getOptions->parse();
1818

19-
$command = new Command();
20-
$exitCode = $command->run($result->options, $result->paths);
19+
$entryPoint = new EntryPoint();
20+
$exitCode = $entryPoint->run($result->options, $result->paths);
2121
exit($exitCode);

src/Command.php renamed to src/EntryPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Smeghead\PhpVariableHardUsage\Option\CommandFactory;
88

9-
final class Command
9+
final class EntryPoint
1010
{
1111
/**
1212
* @param array<string, string|bool> $options

0 commit comments

Comments
 (0)