File tree 4 files changed +181
-19
lines changed
4 files changed +181
-19
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ coverage:
2
2
status :
3
3
project :
4
4
default :
5
- threshold : auto
5
+ threshold : 5%
6
6
target : auto
7
7
odfe-cli :
8
8
paths :
Original file line number Diff line number Diff line change @@ -17,15 +17,16 @@ package commands
17
17
18
18
import (
19
19
"fmt"
20
+
21
+ "golang.org/x/term"
22
+
20
23
"odfe-cli/controller/config"
21
24
"odfe-cli/controller/profile"
22
25
"odfe-cli/entity"
23
26
"os"
24
27
"strings"
25
28
"text/tabwriter"
26
29
27
- "golang.org/x/crypto/ssh/terminal"
28
-
29
30
"github.com/spf13/cobra"
30
31
)
31
32
@@ -202,7 +203,7 @@ func checkInputIsNotEmpty(input string) bool {
202
203
// getUserInputAsMaskedText get value from user as masked text, since credentials like password
203
204
// should not be displayed on console for security reasons
204
205
func getUserInputAsMaskedText (isValid func (string ) bool ) string {
205
- maskedValue , err := terminal .ReadPassword (0 )
206
+ maskedValue , err := term .ReadPassword (0 )
206
207
if err != nil {
207
208
fmt .Println (err )
208
209
os .Exit (1 )
Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ require (
6
6
github.com/cheggaaa/pb/v3 v3.0.5
7
7
github.com/golang/mock v1.4.4
8
8
github.com/hashicorp/go-retryablehttp v0.6.7
9
- github.com/spf13/cobra v1.0.0
9
+ github.com/spf13/cobra v1.1.1
10
10
github.com/stretchr/testify v1.6.1
11
- golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
11
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 // indirect
12
+ golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf
12
13
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
14
+
13
15
)
You can’t perform that action at this time.
0 commit comments