From 9fe5067b913895ec71b36b6983721418c9420b29 Mon Sep 17 00:00:00 2001 From: Rafael Queiroz Date: Mon, 6 Feb 2017 20:28:55 -0300 Subject: [PATCH] Adding symfony/console and JasperPHPCommand skeleton --- composer.json | 3 ++- jasper | 10 +++++++++ src/JasperPHP/JasperPHPCommand.php | 28 ++++++++++++++++++++++++ tests/JasperPHP/JasperPHPCommandTest.php | 12 ++++++++++ 4 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 jasper create mode 100644 src/JasperPHP/JasperPHPCommand.php create mode 100644 tests/JasperPHP/JasperPHPCommandTest.php diff --git a/composer.json b/composer.json index d63af63..ece0c91 100755 --- a/composer.json +++ b/composer.json @@ -29,7 +29,8 @@ ], "minimum-stability": "dev", "require": { - "php": ">=5.4.0" + "php": ">=5.4.0", + "symfony/console": "^3.2" }, "require-dev": { "phpunit/phpunit": "4.8.*" diff --git a/jasper b/jasper new file mode 100644 index 0000000..1d5f5e3 --- /dev/null +++ b/jasper @@ -0,0 +1,10 @@ +#!/usr/bin/env php +add(new JasperPHPCommand()); +$application->run(); diff --git a/src/JasperPHP/JasperPHPCommand.php b/src/JasperPHP/JasperPHPCommand.php new file mode 100644 index 0000000..db54868 --- /dev/null +++ b/src/JasperPHP/JasperPHPCommand.php @@ -0,0 +1,28 @@ +setName('process') + ->setDescription('Description of process', '1.0') + ->setHelp('Help of process'); + } + + /** + * + */ + protected function execute(InputInterface $input, OutputInterface $output) + { + + } + +} \ No newline at end of file diff --git a/tests/JasperPHP/JasperPHPCommandTest.php b/tests/JasperPHP/JasperPHPCommandTest.php new file mode 100644 index 0000000..34cb6cb --- /dev/null +++ b/tests/JasperPHP/JasperPHPCommandTest.php @@ -0,0 +1,12 @@ +