summaryrefslogtreecommitdiff
path: root/client/clipboard/shell_clipboard.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/clipboard/shell_clipboard.go')
-rw-r--r--client/clipboard/shell_clipboard.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/clipboard/shell_clipboard.go b/client/clipboard/shell_clipboard.go
index 9d8ecc8..af0130d 100644
--- a/client/clipboard/shell_clipboard.go
+++ b/client/clipboard/shell_clipboard.go
@@ -7,8 +7,8 @@ import (
)
type ShellClipboard struct {
- copyCommand string
- pasteCommand string
+ CopyCommand string
+ PasteCommand string
testCommand string
}
@@ -32,7 +32,7 @@ func (c ShellClipboard) Test() bool {
}
func (c ShellClipboard) Copy(text string) {
- cmd := command(c.copyCommand)
+ cmd := command(c.CopyCommand)
pipe, err := cmd.StdinPipe()
cmd.Start()
go func() {
@@ -47,7 +47,7 @@ func (c ShellClipboard) Copy(text string) {
}
func (c ShellClipboard) Paste() <-chan string {
- cmd := command(c.pasteCommand)
+ cmd := command(c.PasteCommand)
pipe, err := cmd.StdoutPipe()
cmd.Start()
ch := make(chan string, 1)