cmd/analytics: note Google Analytics differences.

Be more explicit about when Google Analytics is disabled and when the
is used or not.
This commit is contained in:
Mike McQuaid 2023-02-16 09:44:07 +00:00
parent 6f195c1e6f
commit 9a02d48de7
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
3 changed files with 8 additions and 4 deletions

View File

@ -22,7 +22,7 @@ module Homebrew
Turn Homebrew's analytics on or off respectively.
`brew analytics regenerate-uuid`:
Regenerate the UUID used for Homebrew's analytics.
Regenerate the UUID used for Homebrew's Google Analytics (not InfluxDB).
EOS
named_args %w[state on off regenerate-uuid], max: 1
@ -38,7 +38,11 @@ module Homebrew
puts "Analytics are disabled."
else
puts "Analytics are enabled."
puts "UUID: #{Utils::Analytics.uuid}" if Utils::Analytics.uuid.present?
if Homebrew::EnvConfig.no_google_analytics?
puts "Google Analytics are disabled."
elsif Utils::Analytics.uuid.present?
puts "UUID: #{Utils::Analytics.uuid}"
end
end
when "on"
Utils::Analytics.enable!

View File

@ -80,7 +80,7 @@ Read more at <https://docs.brew.sh/Analytics>.
<br>Turn Homebrew's analytics on or off respectively.
`brew analytics regenerate-uuid`
<br>Regenerate the UUID used for Homebrew's analytics.
<br>Regenerate the UUID used for Homebrew's Google Analytics (not InfluxDB).
### `autoremove` [`--dry-run`]

View File

@ -94,7 +94,7 @@ Control Homebrew\'s anonymous aggregate user behaviour analytics\. Read more at
.
.P
\fBbrew analytics regenerate\-uuid\fR
Regenerate the UUID used for Homebrew\'s analytics\.
Regenerate the UUID used for Homebrew\'s Google Analytics (not InfluxDB)\.
.
.SS "\fBautoremove\fR [\fB\-\-dry\-run\fR]"
Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed\.