scripts: Improve nomie credentials options

Added option to input nomie api key either directly as an environment
variable, or to pass a command (also through env var) to nomie which it
will call to get the api key.

So, if you have e.g. pass as password manager running, you can just do
`NOMIE_API_KEY_CMD="pass show path/to/key/file"` and it will use the
returned credentials.
This commit is contained in:
Marty Oehme 2021-03-30 22:21:42 +02:00
parent d71e4a19fb
commit 8fd025653a
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 40 additions and 4 deletions

View file

@ -0,0 +1 @@
export NOMIE_API_KEY_CMD="pass show websites/nomie.app/apikey"