File tree Expand file tree Collapse file tree 4 files changed +31
-1
lines changed
Expand file tree Collapse file tree 4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 99 s "sort"
1010 "strings"
1111
12- "github.com/atotto /clipboard"
12+ "github.com/hazcod/enpass-cli/pkg /clipboard"
1313 "github.com/hazcod/enpass-cli/pkg/enpass"
1414 "github.com/hazcod/enpass-cli/pkg/pin"
1515
Original file line number Diff line number Diff line change 1+ package clipboard
2+
3+ var (
4+ // using X selection primary if set to true and os allows for it
5+ Primary bool
6+ )
7+
8+ // WriteAll : writes to the clipboard
9+ func WriteAll (text string ) error {
10+ return writeAll (text )
11+ }
Original file line number Diff line number Diff line change 1+ package clipboard
2+
3+ import (
4+ "github.com/atotto/clipboard"
5+ )
6+
7+ func writeAll (text string ) error {
8+ return clipboard .WriteAll (text )
9+ }
Original file line number Diff line number Diff line change 1+ package clipboard
2+
3+ import (
4+ "github.com/atotto/clipboard"
5+ )
6+
7+ func writeAll (text string ) error {
8+ clipboard .Primary = Primary
9+ return clipboard .WriteAll (text )
10+ }
You can’t perform that action at this time.
0 commit comments