From 94c6cc28463816a3a8828ca83992e7b730d139af Mon Sep 17 00:00:00 2001 From: Thierry Geindre Date: Fri, 3 Aug 2018 10:46:18 +0200 Subject: [PATCH] Fix stage option --- bref | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bref b/bref index 4f3773be6..c5fd7d563 100755 --- a/bref +++ b/bref @@ -133,17 +133,17 @@ $app->command('info [--stage=]', function (?string $stage, SymfonyStyle $io) { $app->command('remove [--stage=]', function (?string $stage, SymfonyStyle $io) { $stageOption = $stage ? ' --stage ' . escapeshellarg($stage) : ''; - $io->write((new Process('serverless remove'))->mustRun()->getOutput()); + $io->write((new Process('serverless remove'.$stageOption))->mustRun()->getOutput()); }); $app->command('logs [--stage=]', function (?string $stage, SymfonyStyle $io) { $stageOption = $stage ? ' --stage ' . escapeshellarg($stage) : ''; - $io->write((new Process('serverless logs -f main'))->mustRun()->getOutput()); + $io->write((new Process('serverless logs -f main'.$stageOption))->mustRun()->getOutput()); }); $app->command('invoke [--stage=]', function (?string $stage, SymfonyStyle $io) { $stageOption = $stage ? ' --stage ' . escapeshellarg($stage) : ''; - $io->write((new Process('serverless invoke -f main'))->mustRun()->getOutput()); + $io->write((new Process('serverless invoke -f main'.$stageOption))->mustRun()->getOutput()); }); $app->run();