clipboard

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedCopyType                  = errors.New("unsupported copy type")
	ErrCannotCopyClipboardWithinSameDisplay = errors.New("cannot copy clipboard within the same display")
)

Functions

func Run

func Run(opts ...command.Option[Options]) error

func WithContentType

func WithContentType(t string) command.Option[Options]

func WithFromHost

func WithFromHost() command.Option[Options]

func WithSourceProfile

func WithSourceProfile(p *types.Profile) command.Option[Options]

func WithTargetHost added in v0.0.4

func WithTargetHost() command.Option[Options]

func WithTargetProfile

func WithTargetProfile(p *types.Profile) command.Option[Options]

Types

type Options

type Options struct {
	FromHost      bool
	ToHost        bool
	SourceProfile *types.Profile
	TargetProfile *types.Profile
	ContentType   string
}

Jump to

Keyboard shortcuts

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