Skip to content

Commit 1bd9b6f

Browse files
authored
Upgrade dependencies (opendistro-for-elasticsearch#21)
* Upgrade dependencies Update cobra and use term package instead of crypto. Set threshold as number
1 parent 9f2c49a commit 1bd9b6f

File tree

4 files changed

+181
-19
lines changed

4 files changed

+181
-19
lines changed

codecov.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ coverage:
22
status:
33
project:
44
default:
5-
threshold: auto
5+
threshold: 5%
66
target: auto
77
odfe-cli:
88
paths:

commands/profile.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ package commands
1717

1818
import (
1919
"fmt"
20+
21+
"golang.org/x/term"
22+
2023
"odfe-cli/controller/config"
2124
"odfe-cli/controller/profile"
2225
"odfe-cli/entity"
2326
"os"
2427
"strings"
2528
"text/tabwriter"
2629

27-
"golang.org/x/crypto/ssh/terminal"
28-
2930
"github.com/spf13/cobra"
3031
)
3132

@@ -202,7 +203,7 @@ func checkInputIsNotEmpty(input string) bool {
202203
// getUserInputAsMaskedText get value from user as masked text, since credentials like password
203204
// should not be displayed on console for security reasons
204205
func getUserInputAsMaskedText(isValid func(string) bool) string {
205-
maskedValue, err := terminal.ReadPassword(0)
206+
maskedValue, err := term.ReadPassword(0)
206207
if err != nil {
207208
fmt.Println(err)
208209
os.Exit(1)

go.mod

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ require (
66
github.com/cheggaaa/pb/v3 v3.0.5
77
github.com/golang/mock v1.4.4
88
github.com/hashicorp/go-retryablehttp v0.6.7
9-
github.com/spf13/cobra v1.0.0
9+
github.com/spf13/cobra v1.1.1
1010
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
1213
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
14+
1315
)

0 commit comments

Comments
 (0)