1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

Update cli.go to use inline environment variables instead of export

Also removed unnecessary quotes
This commit is contained in:
vi'01-1'et 2024-07-22 16:39:23 -04:00 committed by Ezequiel Rosas
parent 1a43826308
commit df5b2994f6

View file

@ -392,8 +392,7 @@ func send(c *cli.Context) (err error) {
fmt.Printf(`On UNIX systems, to send with a custom code phrase, fmt.Printf(`On UNIX systems, to send with a custom code phrase,
you need to set the environmental variable CROC_SECRET: you need to set the environmental variable CROC_SECRET:
export CROC_SECRET="****" CROC_SECRET=**** croc send file.txt
croc send file.txt
Or you can have the code phrase automatically generated: 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 fmt.Printf(`On UNIX systems, to receive with croc you either need
to set a code phrase using your environmental variables: to set a code phrase using your environmental variables:
export CROC_SECRET="****" CROC_SECRET=**** croc
croc
Or you can specify the code phrase when you run croc without Or you can specify the code phrase when you run croc without
declaring the secret on the command line: declaring the secret on the command line: