license

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

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.

func Require

func Require() error

Require returns ErrNotLicensed when the binary is not licensed. Paid command RunE functions should call this first.

Types

This section is empty.

Jump to

Keyboard shortcuts

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