Skip to content

Commit

Permalink
CLI-1317: api:base is not a valid command
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Apr 18, 2024
1 parent cf14e26 commit 30424b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Command/Api/ApiBaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Acquia\Cli\Attribute\RequireAuth;
use Acquia\Cli\Command\CommandBase;
use Acquia\Cli\Exception\AcquiaCliException;
use AcquiaCloudApi\Connector\Client;
use AcquiaCloudApi\Exception\ApiErrorException;
use Closure;
Expand Down Expand Up @@ -87,6 +88,9 @@ protected function interact(InputInterface $input, OutputInterface $output): voi
}

protected function execute(InputInterface $input, OutputInterface $output): int {
if ($this->getName() === 'api:base') {
throw new AcquiaCliException('api:base is not a valid command');

Check warning on line 92 in src/Command/Api/ApiBaseCommand.php

View check run for this annotation

Codecov / codecov/patch

src/Command/Api/ApiBaseCommand.php#L92

Added line #L92 was not covered by tests
}
// Build query from non-null options.
$acquiaCloudClient = $this->cloudApiClientService->getClient();
$this->addQueryParamsToClient($input, $acquiaCloudClient);
Expand Down

0 comments on commit 30424b2

Please sign in to comment.