From 87924386ecca3e7d82b2b2ef92cef3a1c10d8b31 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Sun, 8 Oct 2023 09:20:46 -0700 Subject: [PATCH] chore: Fix lint on main (#386) --- command.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command.go b/command.go index 0b4adf135..911dcf097 100644 --- a/command.go +++ b/command.go @@ -3,7 +3,6 @@ package main import ( "encoding/json" "fmt" - "github.com/atotto/clipboard" "io" "os" "os/exec" @@ -11,6 +10,7 @@ import ( "strings" "time" + "github.com/atotto/clipboard" "github.com/go-rod/rod/lib/input" "github.com/mattn/go-runewidth" ) @@ -264,10 +264,12 @@ func ExecuteOutput(c Command, v *VHS) { } } +// ExecuteCopy copies text to the clipboard. func ExecuteCopy(c Command, _ *VHS) { _ = clipboard.WriteAll(c.Args) } +// ExecutePaste pastes text from the clipboard. func ExecutePaste(_ Command, v *VHS) { clip, err := clipboard.ReadAll() if err != nil {