Skip to content

Commit 386d58f

Browse files
authored
Make environment argument optional for env:pull and env:push commands (#185)
1 parent f1e3362 commit 386d58f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Commands/EnvPullCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function configure()
1717
{
1818
$this
1919
->setName('env:pull')
20-
->addArgument('environment', InputArgument::REQUIRED, 'The environment name')
20+
->addArgument('environment', InputArgument::OPTIONAL, 'The environment name')
2121
->addOption('file', null, InputArgument::OPTIONAL, 'File to write the environment variables to')
2222
->setDescription('Download the environment file for the given environment');
2323
}

src/Commands/EnvPushCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ protected function configure()
1818
{
1919
$this
2020
->setName('env:push')
21-
->addArgument('environment', InputArgument::REQUIRED, 'The environment name')
21+
->addArgument('environment', InputArgument::OPTIONAL, 'The environment name')
2222
->addOption('file', null, InputOption::VALUE_OPTIONAL, 'File to upload the environment variables from')
2323
->addOption('keep', null, InputOption::VALUE_NONE, 'Do not delete the environment file after pushing')
2424
->setDescription('Upload the environment file for the given environment');

0 commit comments

Comments
 (0)