aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorParsa Yousefi <parsa.yousefi@ionos.com>2024-09-05 15:58:30 +0200
committerGibheer <gibheer+git@zero-knowledge.org>2024-09-05 15:58:30 +0200
commitb06f25281f22eae33839a349bc3dd26ed403b4c6 (patch)
tree6c8999422884a811643d8c68548ebe131f7c96b3 /cmd
parentefa2f5b307be6db42b781be4f9d86306114c0cb8 (diff)
replace deprecated dependency
The term part was moved to a separate library.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/monfront/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/monfront/main.go b/cmd/monfront/main.go
index 2fcf15b..c56dafd 100644
--- a/cmd/monfront/main.go
+++ b/cmd/monfront/main.go
@@ -20,7 +20,7 @@ import (
"github.com/BurntSushi/toml"
"github.com/lib/pq"
- "golang.org/x/crypto/ssh/terminal"
+ "golang.org/x/term"
)
var (
@@ -72,7 +72,7 @@ func main() {
switch flag.Arg(0) {
case "pwgen":
fmt.Printf("enter password: ")
- pw, err := terminal.ReadPassword(0)
+ pw, err := term.ReadPassword(0)
fmt.Println()
if err != nil {
log.Fatalf("could not read password: %s", err)
@@ -94,7 +94,7 @@ func main() {
log.Fatalf("config '%s' is world readable!", *configPath)
}
- raw, err := ioutil.ReadFile(*configPath)
+ raw, err := os.ReadFile(*configPath)
if err != nil {
log.Fatalf("could not read config: %s", err)
}