Documentation
¶
Overview ¶
Package license gates paid-only commands and features. The OSS build always reports unlicensed; the paid build (`-tags paid`) replaces this stub via license_paid.go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotLicensed = errors.New("this command requires a paid build of disco")
ErrNotLicensed is returned by paid command guards when running under the OSS build. Callers should surface it to cobra so the CLI exits non-zero with a clear message.
Functions ¶
func IsLicensed ¶
func IsLicensed() bool
IsLicensed reports whether the running binary has paid features enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.