File tree 4 files changed +9
-15
lines changed
4 files changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
"github.com/k0kubun/sqldef/adapter"
12
12
"github.com/k0kubun/sqldef/adapter/mysql"
13
13
"github.com/k0kubun/sqldef/schema"
14
- "golang.org/x/crypto/ssh/terminal "
14
+ "golang.org/x/term "
15
15
)
16
16
17
17
var version string
@@ -76,7 +76,7 @@ func parseOptions(args []string) (adapter.Config, *sqldef.Options) {
76
76
77
77
if opts .Prompt {
78
78
fmt .Printf ("Enter Password: " )
79
- pass , err := terminal .ReadPassword (int (syscall .Stdin ))
79
+ pass , err := term .ReadPassword (int (syscall .Stdin ))
80
80
if err != nil {
81
81
log .Fatal (err )
82
82
}
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
"github.com/k0kubun/sqldef/adapter"
12
12
"github.com/k0kubun/sqldef/adapter/postgres"
13
13
"github.com/k0kubun/sqldef/schema"
14
- "golang.org/x/crypto/ssh/terminal "
14
+ "golang.org/x/term "
15
15
)
16
16
17
17
var version string
@@ -75,7 +75,7 @@ func parseOptions(args []string) (adapter.Config, *sqldef.Options) {
75
75
76
76
if opts .Prompt {
77
77
fmt .Printf ("Enter Password: " )
78
- pass , err := terminal .ReadPassword (int (syscall .Stdin ))
78
+ pass , err := term .ReadPassword (int (syscall .Stdin ))
79
79
if err != nil {
80
80
log .Fatal (err )
81
81
}
Original file line number Diff line number Diff line change @@ -7,6 +7,5 @@ require (
7
7
github.com/jessevdk/go-flags v1.4.0
8
8
github.com/lib/pq v1.10.0
9
9
github.com/mattn/go-sqlite3 v1.14.6
10
- golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a
11
- golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f // indirect
10
+ golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72
12
11
)
Original file line number Diff line number Diff line change @@ -6,12 +6,7 @@ github.com/lib/pq v1.10.0 h1:Zx5DJFEYQXio93kgXnQ09fXNiUKsqv4OUEu2UtGcB1E=
6
6
github.com/lib/pq v1.10.0 /go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o =
7
7
github.com/mattn/go-sqlite3 v1.14.6 h1:dNPt6NO46WmLVt2DLNpwczCmdV5boIZ6g/tlDrlRUbg =
8
8
github.com/mattn/go-sqlite3 v1.14.6 /go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU =
9
- golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2 /go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w =
10
- golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a h1:vclmkQCjlDX5OydZ9wv8rBCcS0QyQY66Mpf/7BZbInM =
11
- golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a /go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto =
12
- golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 /go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg =
13
- golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a /go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY =
14
- golang.org/x/sys v0.0.0-20190412213103-97732733099d /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
15
- golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f h1:+Nyd8tzPX9R7BWHguqsrbFdRx3WQ/1ib8I44HXV5yTA =
16
- golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
17
- golang.org/x/text v0.3.0 /go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ =
9
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 h1:nxC68pudNYkKU6jWhgrqdreuFiOQWj1Fs7T3VrH4Pjw =
10
+ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
11
+ golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72 h1:VqE9gduFZ4dbR7XoL77lHFp0/DyDUBKSXK7CMFkVcV0 =
12
+ golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72 /go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo =
You can’t perform that action at this time.
0 commit comments