mirror of
https://github.com/schollz/croc.git
synced 2024-11-27 12:34:19 +03:00
Update cli.go to use inline environment variables instead of export
Also removed unnecessary quotes
This commit is contained in:
parent
1a43826308
commit
df5b2994f6
@ -392,8 +392,7 @@ func send(c *cli.Context) (err error) {
|
||||
fmt.Printf(`On UNIX systems, to send with a custom code phrase,
|
||||
you need to set the environmental variable CROC_SECRET:
|
||||
|
||||
export CROC_SECRET="****"
|
||||
croc send file.txt
|
||||
CROC_SECRET=**** croc send file.txt
|
||||
|
||||
Or you can have the code phrase automatically generated:
|
||||
|
||||
@ -609,8 +608,7 @@ func receive(c *cli.Context) (err error) {
|
||||
fmt.Printf(`On UNIX systems, to receive with croc you either need
|
||||
to set a code phrase using your environmental variables:
|
||||
|
||||
export CROC_SECRET="****"
|
||||
croc
|
||||
CROC_SECRET=**** croc
|
||||
|
||||
Or you can specify the code phrase when you run croc without
|
||||
declaring the secret on the command line:
|
||||
|
Loading…
Reference in New Issue
Block a user