Skip to content

Commit

Permalink
CLI-1253: Add ACLI_NO_TELEMETRY option (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored Jan 23, 2024
1 parent dcb40ed commit 0fc725f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Command/CommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
$this->formatter = $this->getHelper('formatter');

$this->output->writeln('Acquia CLI version: ' . $this->getApplication()->getVersion(), OutputInterface::VERBOSITY_DEBUG);
$this->checkAndPromptTelemetryPreference();
$this->telemetryHelper->initialize();
if (getenv('ACLI_NO_TELEMETRY') !== 'true') {
$this->checkAndPromptTelemetryPreference();
$this->telemetryHelper->initialize();
}
$this->checkAuthentication();

$this->fillMissingRequiredApplicationUuid($input, $output);
Expand Down

0 comments on commit 0fc725f

Please sign in to comment.