mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
Make receive instructions copypaste-able
This commit is contained in:
parent
69af916d36
commit
1a43826308
1 changed files with 8 additions and 1 deletions
|
@ -648,7 +648,14 @@ func (c *Client) Send(filesInfo []FileInfo, emptyFoldersToTransfer []FileInfo, t
|
|||
if c.Options.RelayPassword != models.DEFAULT_PASSPHRASE {
|
||||
flags.WriteString("--pass " + c.Options.RelayPassword + " ")
|
||||
}
|
||||
fmt.Fprintf(os.Stderr, "Code is: %[1]s\nOn the other computer run\n\ncroc %[2]s%[1]s\n", c.Options.SharedSecret, flags.String())
|
||||
fmt.Fprintf(os.Stderr, `Code is: %[1]s
|
||||
|
||||
On the other computer run:
|
||||
(For Windows)
|
||||
croc %[2]s%[1]s
|
||||
(For Linux/OSX)
|
||||
CROC_SECRET=%[1]q croc %[2]s
|
||||
`, c.Options.SharedSecret, flags.String())
|
||||
if c.Options.Ask {
|
||||
machid, _ := machineid.ID()
|
||||
fmt.Fprintf(os.Stderr, "\rYour machine ID is '%s'\n", machid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue