mirror of
https://github.com/rwinkhart/MUTN.git
synced 2026-09-02 23:27:22 -04:00
Do not use deprecated golang.org/x/crypto/ssh/terminal
This commit is contained in:
@@ -8,6 +8,7 @@ require (
|
|||||||
github.com/pkg/sftp v1.13.6
|
github.com/pkg/sftp v1.13.6
|
||||||
github.com/pquerna/otp v1.4.1-0.20231130234153-3357de7c0481
|
github.com/pquerna/otp v1.4.1-0.20231130234153-3357de7c0481
|
||||||
golang.org/x/crypto v0.25.0
|
golang.org/x/crypto v0.25.0
|
||||||
|
golang.org/x/term v0.22.0
|
||||||
gopkg.in/ini.v1 v1.67.0
|
gopkg.in/ini.v1 v1.67.0
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -32,5 +33,4 @@ require (
|
|||||||
github.com/yuin/goldmark-emoji v1.0.3 // indirect
|
github.com/yuin/goldmark-emoji v1.0.3 // indirect
|
||||||
golang.org/x/net v0.27.0 // indirect
|
golang.org/x/net v0.27.0 // indirect
|
||||||
golang.org/x/sys v0.23.0 // indirect
|
golang.org/x/sys v0.23.0 // indirect
|
||||||
golang.org/x/term v0.22.0 // indirect
|
|
||||||
)
|
)
|
||||||
|
|||||||
+3
-2
@@ -1,13 +1,14 @@
|
|||||||
package cli
|
package cli
|
||||||
|
|
||||||
import (
|
import (
|
||||||
termy "golang.org/x/crypto/ssh/terminal"
|
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"golang.org/x/term"
|
||||||
)
|
)
|
||||||
|
|
||||||
// global variables used across multiple files
|
// global variables used across multiple files
|
||||||
var (
|
var (
|
||||||
width, _, _ = termy.GetSize(int(os.Stdout.Fd()))
|
width, _, _ = term.GetSize(int(os.Stdout.Fd()))
|
||||||
)
|
)
|
||||||
|
|
||||||
// global constants used across multiple files
|
// global constants used across multiple files
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
## Known Bugs - MUTN CLI
|
## Known Bugs - MUTN CLI
|
||||||
- Various Markdown issues resulting from the use of [Glamour](https://github.com/charmbracelet/glamour)
|
- Various Markdown issues resulting from the use of [Glamour](https://github.com/charmbracelet/glamour)
|
||||||
- Note that MUTN is currently using the older Glamour v0.7.0, as v0.8.0 introduced even more issues
|
- Note that MUTN is currently using the older Glamour v0.7.0, as v0.8.0 introduced a line-wrapping regression
|
||||||
- [Odd handling of line breaks](https://github.com/charmbracelet/glamour/issues/84)
|
- [Odd handling of line breaks](https://github.com/charmbracelet/glamour/issues/84)
|
||||||
- [Broken quotes](https://github.com/charmbracelet/glamour/issues/172) (seems related to line break issue)
|
- [Broken quotes](https://github.com/charmbracelet/glamour/issues/172) (seems related to line break issue)
|
||||||
- [Extra blank lines after nested list items](https://github.com/charmbracelet/glamour/issues/102)
|
- [Extra blank lines after nested list items](https://github.com/charmbracelet/glamour/issues/102)
|
||||||
|
|||||||
Reference in New Issue
Block a user