clipboard

package
Version: v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 16 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Helpers can be overridden at compile time, e.g. go build \
	// -ldflags=='-X github.com/gopasspw/gopass/pkg/clipboard.Helpers=termux-api'
	Helpers = "xsel of xclip"
	// ErrNotSupported is returned when the clipboard is not accessible
	ErrNotSupported = fmt.Errorf("WARNING: No clipboard available. Install " + Helpers + " or use -f to print to console")
)

Functions

func Clear

func Clear(ctx context.Context, checksum string, force bool) error

Clear will attempt to erase the clipboard

func CopyTo

func CopyTo(ctx context.Context, name string, content []byte, timeout int) error

CopyTo copies the given data to the clipboard and enqueues automatic clearing of the clipboard

Types

This section is empty.

Jump to

Keyboard shortcuts

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