-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start work on Cli runner * More work on CLI runner * More work * Changes to support better testing, custom CLI runner * Final CLI runner implementation * Move fixture to test directory * Refactor decorator collection into v3 * Remove the tools composer.lock files * Fix install, fix removal of fixture_src * Try fixing autoload paths * Adjust gitignore to include moved test files
- Loading branch information
Showing
466 changed files
with
4,414 additions
and
8,195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,8 @@ | ||
#!/usr/bin/env php | ||
<?php declare(strict_types=1); | ||
|
||
use Cspray\AnnotatedContainer\Bootstrap\RootDirectoryBootstrappingDirectoryResolver; | ||
use Cspray\AnnotatedContainer\Bootstrap\ComposerJsonScanningThirdPartyInitializerProvider; | ||
use Cspray\AnnotatedContainer\Cli\Command\ValidateCommand; | ||
use Cspray\AnnotatedContainer\Cli\Command\BuildCommand; | ||
use Cspray\AnnotatedContainer\Cli\Command\CacheClearCommand; | ||
use Cspray\AnnotatedContainer\Cli\Command\HelpCommand; | ||
use Cspray\AnnotatedContainer\Cli\Command\InitCommand; | ||
use Cspray\AnnotatedContainer\Cli\CommandExecutor; | ||
use Cspray\AnnotatedContainer\Cli\InputParser; | ||
use Cspray\AnnotatedContainer\Cli\TerminalOutput; | ||
use Cspray\AnnotatedContainer\Cli\AnnotatedContainerCliRunner; | ||
|
||
$dir = dirname(__DIR__); | ||
if (!file_exists($dir . '/vendor/autoload.php')) { | ||
$dir = dirname(__DIR__, 4); | ||
} | ||
|
||
require_once $dir . '/vendor/autoload.php'; | ||
|
||
$directoryResolver = new RootDirectoryBootstrappingDirectoryResolver($dir); | ||
|
||
$commandExecutor = new CommandExecutor(); | ||
|
||
$commandExecutor->defaultCommand(new HelpCommand($commandExecutor)); | ||
$commandExecutor->addCommand(new InitCommand($directoryResolver, new ComposerJsonScanningThirdPartyInitializerProvider($directoryResolver))); | ||
$commandExecutor->addCommand(new BuildCommand($directoryResolver)); | ||
$commandExecutor->addCommand(new CacheClearCommand($directoryResolver)); | ||
$commandExecutor->addCommand(new ValidateCommand($directoryResolver)); | ||
|
||
$input = (new InputParser())->parse($argv); | ||
$terminalOutput = new TerminalOutput(); | ||
|
||
$exitCode = $commandExecutor->execute($input, $terminalOutput); | ||
exit($exitCode); | ||
include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php'; | ||
|
||
AnnotatedContainerCliRunner::setup(null)->run($argv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.