github.com/puellanivis/breton@v0.2.16/lib/files/clipboard/clip_darwin.go (about)

     1  package clipboard
     2  
     3  import (
     4  	"net/url"
     5  )
     6  
     7  var (
     8  	pasteCmd = []string{"/usr/bin/pbpaste"}
     9  	copyCmd  = []string{"/usr/bin/pbcopy"}
    10  	selParam = []string{"-pboard"}
    11  )
    12  
    13  // special case, easy every time.
    14  var defaultClipboard clipboard = &execClip{
    15  	name:  &url.URL{Scheme: "clipboard"},
    16  	paste: pasteCmd,
    17  	copy:  copyCmd,
    18  }
    19  
    20  func init() {
    21  	clipboards[""] = defaultClipboard
    22  
    23  	newExecClip("general")
    24  	newExecClip("ruler")
    25  	newExecClip("find")
    26  	newExecClip("font")
    27  }