diff --git a/README.md b/README.md new file mode 100644 index 0000000..a84e0f8 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Loom | Spinner + +An environment management application for PHP development. \ No newline at end of file diff --git a/bin/spinner b/bin/spinner index 0bcd5e5..4ce2717 100644 --- a/bin/spinner +++ b/bin/spinner @@ -1,4 +1,17 @@ #!/usr/bin/env php add(new SpinCommand()); + +try { + $application->run(); +} catch (\Exception $exception) { + die(); +} \ No newline at end of file diff --git a/composer.json b/composer.json index 9cff92d..396c5ae 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,18 @@ "name": "loomlabs/spinner", "autoload": { "psr-4": { - "Spinner\\": "src/" + "Loom\\Spinner\\": "src/" } + }, + "autoload-dev": { + "psr-4": { + "Loom\\Spinner\\Tests\\": "tests/" + } + }, + "require": { + "symfony/console": "^7.2" + }, + "require-dev": { + "phpunit/phpunit": "^12.1" } -} \ No newline at end of file +} diff --git a/src/Command/AbstractSpinnerCommand.php b/src/Command/AbstractSpinnerCommand.php new file mode 100644 index 0000000..b1863b6 --- /dev/null +++ b/src/Command/AbstractSpinnerCommand.php @@ -0,0 +1,20 @@ +style = new SymfonyStyle($input, $output); + } +} \ No newline at end of file diff --git a/src/Command/SpinCommand.php b/src/Command/SpinCommand.php new file mode 100644 index 0000000..eb761ed --- /dev/null +++ b/src/Command/SpinCommand.php @@ -0,0 +1,21 @@ +setStyle($input, $output); + + return Command::SUCCESS; + } +} \ No newline at end of file