Mercurial > projects > sievemgr
diff cmd/sievemgr/edit.go @ 11:29769b9e2f09
Switch to golang.org/x/term module
Switch from golang.org/x/crypto/ssh/terminal to the new golang.org/x/term
module.
author | Guido Berhoerster <guido+sievemgr@berhoerster.name> |
---|---|
date | Sat, 12 Dec 2020 20:44:35 +0100 |
parents | 8caacf702c0d |
children | fc5e6970a0d5 |
line wrap: on
line diff
--- a/cmd/sievemgr/edit.go Thu Dec 03 13:52:28 2020 +0100 +++ b/cmd/sievemgr/edit.go Sat Dec 12 20:44:35 2020 +0100 @@ -33,7 +33,7 @@ "go.guido-berhoerster.org/managesieve" "go.guido-berhoerster.org/sievemgr/cmd/sievemgr/internal/config" - "golang.org/x/crypto/ssh/terminal" + "golang.org/x/term" ) func init() { @@ -119,8 +119,8 @@ scriptName := args[0] - if !terminal.IsTerminal(int(os.Stdin.Fd())) || - !terminal.IsTerminal(int(os.Stdout.Fd())) { + if !term.IsTerminal(int(os.Stdin.Fd())) || + !term.IsTerminal(int(os.Stdout.Fd())) { return fmt.Errorf("the edit subcommand can only be used interactively\n") }