Skip to content

1.6.0

Compare
Choose a tag to compare
@mnapoli mnapoli released this 22 May 20:26
· 58 commits to master since this release
use \Symfony\Component\Console\Style\SymfonyStyle;

...

$app->command('greet', function (SymfonyStyle $io) {
    $io->write('hello');
});
  • #34 & #35 Support default values for arguments/options with - in them:
$console->command('import [number-of-clicks]', function ($numberOfClicks = 1) {
   var_dump($numberOfClicks); // prints 1
});