clipboard

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(msg string, keyvals ...interface{})
	Warn(msg string, keyvals ...interface{})
	Error(msg string, keyvals ...interface{})
}

Logger interface for clipboard operations

type Service

type Service interface {
	// Read reads content from the system clipboard
	Read(ctx context.Context, cfg *config.Config) (string, error)

	// Write copies text to the system clipboard and returns a tea.Cmd for async operations
	Write(ctx context.Context, text string, cfg *config.Config) tea.Cmd
}

Service provides clipboard operations across different platforms

func NewService

func NewService(logger Logger) Service

NewService creates a new clipboard service

Jump to

Keyboard shortcuts

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