Skip to content

Commit 1d65fef

Browse files
authored
Merge pull request #1366 from pjcdawkins/variable-create-update-forward-project
Fix: var:create --update not passing on --project option
2 parents a3d34b0 + 4782ec6 commit 1d65fef

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Command/Variable/VariableCreateCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
7474
}
7575
$arguments = [
7676
'--allow-no-change' => true,
77+
'--project' => $this->getSelectedProject(),
7778
];
79+
if ($this->hasSelectedEnvironment()) {
80+
$arguments['--environment'] = $this->getSelectedEnvironment();
81+
}
7882
foreach ($this->form->getFields() as $field) {
7983
$value = $field->getValueFromInput($input, false);
8084
$argName = '--' . $field->getOptionName();

0 commit comments

Comments
 (0)