terms

package
v0.6.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package terms manages first-run privacy notice display and acceptance state. The pkg installer writes the acceptance flag via postinstall so the binary notice is skipped for pkg-installed users; Homebrew/direct-download users see it on first invocation.

Index

Constants

View Source
const EnvNoTelemetry = "TAUFINITY_NO_TELEMETRY"

EnvNoTelemetry disables all data collection when set to "1".

Variables

This section is empty.

Functions

func Accept

func Accept() error

Accept creates the acceptance flag file.

func IsAccepted

func IsAccepted() bool

IsAccepted reports whether the privacy notice has been shown/accepted.

func ShowOnce

func ShowOnce(w io.Writer)

ShowOnce prints the privacy notice to w if it hasn't been shown before, then marks it as accepted. Silent no-op on subsequent calls and when TAUFINITY_NO_TELEMETRY=1 (user already opted out; no need to explain what they opted out of). Errors writing the flag are silently ignored so a read-only home directory doesn't break normal usage.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL