Skip to content

Commit

Permalink
Fix stage option
Browse files Browse the repository at this point in the history
  • Loading branch information
t-geindre committed Aug 3, 2018
1 parent ecb1535 commit 94c6cc2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bref
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit 94c6cc2

Please sign in to comment.