aboutsummaryrefslogtreecommitdiff
path: root/cli.go
diff options
context:
space:
mode:
Diffstat (limited to 'cli.go')
-rw-r--r--cli.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/cli.go b/cli.go
index df11460..2d45a4c 100644
--- a/cli.go
+++ b/cli.go
@@ -3,9 +3,9 @@ package main
import (
"flag"
"fmt"
- "os"
- "syscall"
"golang.org/x/term"
+ "os"
+ "syscall"
)
var fsCli = flag.NewFlagSet("cli", flag.ContinueOnError)
@@ -27,18 +27,18 @@ func cliMain(args []string) {
func cliPasswd() {
fmt.Print("Password: ")
- bytepw, err := term.ReadPassword(int(syscall.Stdin))
- if err != nil {
+ bytepw, err := term.ReadPassword(int(syscall.Stdin))
+ if err != nil {
fmt.Println(err)
- os.Exit(1)
- }
- pass := string(bytepw)
+ os.Exit(1)
+ }
+ pass := string(bytepw)
hash, err := SSHAEncode(pass)
- if err != nil {
+ if err != nil {
fmt.Println(err)
- os.Exit(1)
- }
+ os.Exit(1)
+ }
fmt.Println(hash)
}