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:
parent
6f195c1e6f
commit
9a02d48de7
@ -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!
|
||||||
|
|||||||
@ -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`]
|
||||||
|
|
||||||
|
|||||||
@ -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\.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user