Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5311545

Browse filesBrowse files
authored
chore: use golang.org/x/term (#183)
1 parent ea050d3 commit 5311545
Copy full SHA for 5311545

File tree

Expand file treeCollapse file tree

3 files changed

+3
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+3
-6
lines changed
Open diff view settings
Collapse file

‎go.mod‎

Copy file name to clipboardExpand all lines: go.mod
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
go.opentelemetry.io/otel/sdk v1.16.0
1212
go.opentelemetry.io/otel/trace v1.16.0
1313
go.uber.org/goleak v1.2.1
14-
golang.org/x/crypto v0.11.0
14+
golang.org/x/term v0.10.0
1515
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2
1616
google.golang.org/genproto v0.0.0-20230726155614-23370e0ffb3e
1717
)
@@ -32,7 +32,6 @@ require (
3232
go.opentelemetry.io/otel/metric v1.16.0 // indirect
3333
golang.org/x/net v0.12.0 // indirect
3434
golang.org/x/sys v0.10.0 // indirect
35-
golang.org/x/term v0.10.0 // indirect
3635
golang.org/x/text v0.11.0 // indirect
3736
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 // indirect
3837
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect
Collapse file

‎go.sum‎

Copy file name to clipboardExpand all lines: go.sum
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZE
4949
go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0=
5050
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
5151
go.uber.org/goleak v1.2.1/go.mod h1:qlT2yGI9QafXHhZZLxlSuNsMw3FFLxBr+tBRlmO1xH4=
52-
golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA=
53-
golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio=
5452
golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50=
5553
golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
5654
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Collapse file

‎internal/entryhuman/entry.go‎

Copy file name to clipboardExpand all lines: internal/entryhuman/entry.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717

1818
"github.com/charmbracelet/lipgloss"
1919
"github.com/muesli/termenv"
20-
"golang.org/x/crypto/ssh/terminal"
20+
"golang.org/x/term"
2121
"golang.org/x/xerrors"
2222

2323
"cdr.dev/slog"
@@ -227,7 +227,7 @@ func isTTY(w io.Writer) bool {
227227
f, ok := w.(interface {
228228
Fd() uintptr
229229
})
230-
return ok && terminal.IsTerminal(int(f.Fd()))
230+
return ok && term.IsTerminal(int(f.Fd()))
231231
}
232232

233233
func shouldColor(w io.Writer) bool {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.