support $NOSTR_CLIENT_KEY environment variable for --connect-as

This commit is contained in:
fiatjaf 2024-11-11 22:33:17 -03:00
parent 4c6181d649
commit 9a9e96a829

View File

@ -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"),
},
}