Coder Social home page Coder Social logo

commandline.php's People

Contributors

honzabrecka avatar pwfisher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

commandline.php's Issues

Tag a version

Hi.
Currently the only available way to use the tool through packagist is using dev-master as version. Could you tag a version so libraries are not forced to setup composer with minimum-stability dev?

Thank you very much.

composer.json file is useless

composer.json file is useless until you create pwfisher/command-line-php package on packagist.org

Please, create it.

Why doesn't the example work?

$hello_cmd = new Commando\Command();
$hello_cmd->option('t')
    ->aka('title')
    ->describedAs('When set, use this title to address the person')
    ->must(function($title) {
        var_dump($title); // this line 33, always print NULL
        $titles = array('Mister', 'Mr', 'Misses', 'Mrs', 'Miss', 'Ms');
        return in_array($title, $titles);
    })

dont work:

php /srv/bitrix/batches/user_generation.php  --title=Mister
/srv/bitrix/batches/user_generation.php:33: NULL
ERROR: Invalid value, , for option t

PHP 5.6.32 (cli)

Why doesn't the example work?

Avoid undefined index.

I think it could be fine to avoid checking if the key is set on the parse() result.
So $options['whatever'] is null without warning about undefined index error or using the ugly @.

Don't you think so ?

composer

Hi, it would be nice if this project could be added to my project as dependency via composer. If you are interested, I can prepare a pull request.

travis-ci

Now, when we have phpunit tests, we should use the travis-ci to automate the unit testing process.

I can prepare the .travis.yml file and help you with setup.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.