mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-18 23:45:01 +00:00
28 lines
618 B
Diff
28 lines
618 B
Diff
`golang.design/x/clipboard` requires JNI
|
|
|
|
--- a/src/helper/helper.go
|
|
+++ b/src/helper/helper.go
|
|
@@ -17,7 +17,6 @@
|
|
"github.com/aandrew-me/tgpt/v2/src/structs"
|
|
http "github.com/bogdanfinn/fhttp"
|
|
"github.com/fatih/color"
|
|
- "golang.design/x/clipboard"
|
|
|
|
"github.com/olekukonko/ts"
|
|
|
|
@@ -774,14 +773,6 @@
|
|
|
|
if userInput == "y" || userInput == "" {
|
|
ExecuteCommand(ShellName, ShellOptions, fullText)
|
|
- } else {
|
|
- err := clipboard.Init()
|
|
-
|
|
- if err == nil {
|
|
- clipboard.Write(clipboard.FmtText, []byte(fullText))
|
|
-
|
|
- fmt.Println("Copied command to clipboard")
|
|
- }
|
|
}
|
|
}
|
|
}
|