nakabonne / pbgopy

Copy and paste between devices
MIT License
807 stars 30 forks source link

Support Token or Password Environment Variable #15

Open jcwillox opened 3 years ago

jcwillox commented 3 years ago

It would be great if pbgopy supported setting a token or password to use via an environment variable, e.g. PBGOPY_TOKEN or PBGOPY_PASS. This is similar to how other command-line utilities handle authentication.

Ideally, users with this environment variable set should still be able to use pbgopy without a password for example by using an empty password pbgopy -p "".

nakabonne commented 3 years ago

Good proposal. Yup, the password given via cli-args should be prioritized as you said 👍

keyslapperdev commented 3 years ago

This is being addressed in Issue #5 via PR #12