cmd/gotelemetry: wrap output to 80 columns
Wrap the long lines printed when `gotelemetry on` enables telemetry,
using the slightly adjusted wording from golang/go#66761. One additional
line had to be wrapped (To disable...).
Fixes golang/go#66761
Change-Id: Ic36d498f07d83173cbf12ad04e1e6415e13ffcf4
Reviewed-on: https://go-review.googlesource.com/c/telemetry/+/595956
Auto-Submit: Robert Findley <rfindley@google.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/cmd/gotelemetry/main.go b/cmd/gotelemetry/main.go
index 5e2d723..1351cbe 100644
--- a/cmd/gotelemetry/main.go
+++ b/cmd/gotelemetry/main.go
@@ -226,12 +226,17 @@
}
func telemetryOnMessage() string {
- return `Telemetry uploading is now enabled and data will be periodically sent to https://telemetry.go.dev/. Uploaded data is used to help improve the Go toolchain and related tools, and it will be published as part of a public dataset.
+ return `Telemetry uploading is now enabled.
+Data will be sent periodically to https://telemetry.go.dev/.
+Uploaded data is used to help improve the Go toolchain and related tools,
+and it will be published as part of a public dataset.
For more details, see https://telemetry.go.dev/privacy.
-This data is collected in accordance with the Google Privacy Policy (https://policies.google.com/privacy).
+This data is collected in accordance with the Google Privacy Policy
+(https://policies.google.com/privacy).
-To disable telemetry uploading, but keep local data collection, run “gotelemetry local”.
+To disable telemetry uploading, but keep local data collection,
+run “gotelemetry local”.
To disable both collection and uploading, run “gotelemetry off“.`
}