2017 © Pedro Peláez
 

library go

A simple PHP build tool.

image

herrera-io/go

A simple PHP build tool.

  • Sunday, February 2, 2014
  • by kherge
  • Repository
  • 0 Watchers
  • 72 Stars
  • 457 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

Go

![Build Status], (*1)

Go is a simple PHP build tool built on Symfony Console., (*2)

Gofile:, (*3)

<?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.

Documentation

The Versions

02/05 2013
22/03 2013
27/02 2013
27/02 2013
27/02 2013
09/02 2013
09/02 2013
09/02 2013
09/02 2013
04/02 2013