mirror of
https://github.com/schollz/croc.git
synced 2025-10-10 21:01:02 +02:00
add more text
This commit is contained in:
parent
f3eb85dd95
commit
91532085c7
2 changed files with 7 additions and 3 deletions
8
main.go
8
main.go
|
@ -131,14 +131,18 @@ func send(c *cli.Context) error {
|
|||
}
|
||||
}
|
||||
fmt.Fprintf(os.Stderr,
|
||||
"Sending %s %s name '%s'\nCode is: %s\nOn the other computer, please run:\n\ncroc %s",
|
||||
"Sending %s %s name '%s'\nCode is: %s\nOn the other computer, please run:\n\ncroc %s\n\n",
|
||||
humanize.Bytes(uint64(fsize)),
|
||||
fileOrFolder,
|
||||
filename,
|
||||
codePhrase,
|
||||
codePhrase,
|
||||
)
|
||||
return cr.Send(fname, codePhrase)
|
||||
err = cr.Send(fname, codePhrase)
|
||||
if err == nil {
|
||||
fmt.Fprintf(os.Stderr, "\nTransfer complete")
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func receive(c *cli.Context) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue