gbksoft/shell-command-builder

Shell command builder

1.0.1 2016-08-09 09:16 UTC

This package is not auto-updated.

Last update: 2024-10-26 19:59:02 UTC


README

$cmd = $builder->setCommand(new Command('git'))
            ->addArgument(new Argument('log'))
            ->addFlag(new Flag('--color'))
            ->addFlag(new Flag('--no-merges'))
            ->addFlag(new Flag('-10'))
            ->addFlag(new Flag('--'))
            ->addArgument(new Argument('./'))
            ->build();
git 'log' --color --no-merges -10 -- './'