From 9a9e96a829e8dd5ed6d986cd2f1c62dc126ba9b9 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Mon, 11 Nov 2024 22:33:17 -0300 Subject: [PATCH] support $NOSTR_CLIENT_KEY environment variable for --connect-as --- helpers_key.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpers_key.go b/helpers_key.go index 19f35c3..36b929f 100644 --- a/helpers_key.go +++ b/helpers_key.go @@ -32,9 +32,10 @@ var defaultKeyFlags = []cli.Flag{ }, &cli.StringFlag{ Name: "connect-as", - Usage: "private key to when communicating with the bunker given on --connect", + Usage: "private key to use when communicating with NIP-46 bunkers", DefaultText: "a random key", Category: CATEGORY_SIGNER, + Sources: cli.EnvVars("NOSTR_CLIENT_KEY"), }, }