mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
spinner should be in stderr
This commit is contained in:
parent
e13f8e7067
commit
10111b92cd
3 changed files with 2 additions and 1 deletions
1
main.go
1
main.go
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue