Skip to content

Commit

Permalink
CLI-1429: Allow production environments for log:tail and drush commands
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 14, 2024
1 parent b136a7a commit 1c97cd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/App/LogTailCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected function configure(): void

protected function execute(InputInterface $input, OutputInterface $output): int
{
$environment = $this->determineEnvironment($input, $output);
$environment = $this->determineEnvironment($input, $output, true);

Check warning on line 57 in src/Command/App/LogTailCommand.php

View workflow job for this annotation

GitHub Actions / Mutation Testing

Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ } protected function execute(InputInterface $input, OutputInterface $output) : int { - $environment = $this->determineEnvironment($input, $output, true); + $environment = $this->determineEnvironment($input, $output, false); $acquiaCloudClient = $this->cloudApiClientService->getClient(); $logs = $this->promptChooseLogs(); $logTypes = array_map(static function (mixed $log) {
$acquiaCloudClient = $this->cloudApiClientService->getClient();
$logs = $this->promptChooseLogs();
$logTypes = array_map(static function (mixed $log) {
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Remote/DrushCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function configure(): void

protected function execute(InputInterface $input, OutputInterface $output): ?int
{
$environment = $this->determineEnvironment($input, $output);
$environment = $this->determineEnvironment($input, $output, true);
$alias = self::getEnvironmentAlias($environment);
$acliArguments = $input->getArguments();
$drushArguments = (array) $acliArguments['drush_command'];
Expand Down

0 comments on commit 1c97cd2

Please sign in to comment.