clipboard

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Summary

func Summary(result Result) string

Types

type Options

type Options struct {
	FallbackDir      string
	FallbackFilename string
	TermWriter       io.Writer
	LookupEnv        func(string) (string, bool)
	LookPath         func(string) (string, error)
	RunCommand       func(context.Context, string, []string, string) error
	GOOS             string
}

type Result

type Result struct {
	Chars       int
	Lines       int
	FilePath    string
	Native      bool
	Tmux        bool
	OSC52       bool
	NativeError string
	FileError   string
}

func CopyText

func CopyText(ctx context.Context, text string, opts Options) (Result, error)

Jump to

Keyboard shortcuts

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