package clipper

import (
	
)

// pbpaste/pbcopy for macos
type Pb struct{}

func ( *Pb) () error {
	return verify(, "pbpaste", "pbcopy")
}

func ( *Pb) ( string) ([]byte, error) {
	if  != RegClipboard {
		return nil, &ErrInvalidReg{
			Reg: ,
		}
	}
	 := exec.Command("pbpaste")
	return .Output()
}

func ( *Pb) ( string,  []byte) error {
	if  != RegClipboard {
		return &ErrInvalidReg{
			Reg: ,
		}
	}
	 := exec.Command("pbcopy")
	return write(, )
}