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-12-21 20:46:47 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 -- './'