herrera-io / go
This package is abandoned and no longer maintained.
No replacement package was suggested.
A simple PHP build tool.
2.2.1
2013-10-30 17:50 UTC
Requires
- php: >=5.3.3
- herrera-io/cli-app: ~2.0
- herrera-io/service-update: ~1.0
Requires (Dev)
- ext-phar: *
- herrera-io/phpunit-test-case: ~1.0
- herrera-io/service-process: ~1.0
- phpunit/phpunit: ~3.7
- symfony/process: ~2.1
README
Go is a simple PHP build tool built on Symfony Console.
Gofile:
<?php use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; // create our task task( 'hello', 'Say hello', function (InputInterface $input, OutputInterface $output) { $output->writeln( sprintf( 'Hello, %s%s', $input->getArgument('name'), $input->getOption('ending') ) ); } ); // add an argument to the task arg('name', ARG_IS_OPTIONAL, 'Your name', 'world'); // add an option to the task option('ending', 'e', OPT_IS_OPTIONAL, 'How to end', '!');
$ bin/go hello Hello, world! $ bin/go hello Kevin -e . Hello, Kevin.