Merge pull request #14654 from MikeMcQuaid/analytics_cmd_google

cmd/analytics: note Google Analytics differences.
This commit is contained in:
Mike McQuaid 2023-02-16 12:00:25 +00:00 committed by GitHub
commit 2372ed39f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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. Turn Homebrew's analytics on or off respectively.
`brew analytics regenerate-uuid`: `brew analytics regenerate-uuid`:
Regenerate the UUID used for Homebrew's analytics. Regenerate the UUID used for Homebrew's Google Analytics (not InfluxDB).
EOS EOS
named_args %w[state on off regenerate-uuid], max: 1 named_args %w[state on off regenerate-uuid], max: 1
@ -38,7 +38,11 @@ module Homebrew
puts "Analytics are disabled." puts "Analytics are disabled."
else else
puts "Analytics are enabled." 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 end
when "on" when "on"
Utils::Analytics.enable! 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. <br>Turn Homebrew's analytics on or off respectively.
`brew analytics regenerate-uuid` `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`] ### `autoremove` [`--dry-run`]

View File

@ -94,7 +94,7 @@ Control Homebrew\'s anonymous aggregate user behaviour analytics\. Read more at
. .
.P .P
\fBbrew analytics regenerate\-uuid\fR \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]" .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\. Uninstall formulae that were only installed as a dependency of another formula and are now no longer needed\.