File tree 4 files changed +31
-1
lines changed
4 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 9
9
s "sort"
10
10
"strings"
11
11
12
- "github.com/atotto /clipboard"
12
+ "github.com/hazcod/enpass-cli/pkg /clipboard"
13
13
"github.com/hazcod/enpass-cli/pkg/enpass"
14
14
"github.com/miquella/ask"
15
15
"github.com/sirupsen/logrus"
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