spinner should be in stderr

This commit is contained in:
Zack Scholl 2018-09-22 09:57:22 -07:00
parent e13f8e7067
commit 10111b92cd
3 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,6 @@ func send(c *cli.Context) error {
}
fname = f.Name()
defer func() {
log.Println("removing %s", fname)
err = os.Remove(fname)
if err != nil {
log.Println(err)

View File

@ -49,6 +49,7 @@ func receive(c *websocket.Conn, codephrase string, noPrompt bool, useStdout bool
// start a spinner
spin := spinner.New(spinner.CharSets[9], 100*time.Millisecond)
spin.Writer = os.Stderr
spin.Suffix = " performing PAKE..."
spin.Start()

View File

@ -58,6 +58,7 @@ func send(c *websocket.Conn, fname string, codephrase string) (err error) {
// start a spinner
spin := spinner.New(spinner.CharSets[9], 100*time.Millisecond)
spin.Writer = os.Stderr
// pick an elliptic curve
curve := siec.SIEC255()