pull down to refresh
That's true. Appreciate the feedback.
0.3.0:
➤ git-nostr-setup -h
git-nostr-setup / npm run init -- … — interactive wizard (default)
Non-interactive (--non-interactive or -N):
Identity (pick one):
--generate-identity New random keypair (commits + updater)
--identity-nsec <nsec|hex> Existing key (also: GNS_IDENTITY_NSEC)
--bunker-url <bunker://…> Amber NIP-46 (approve on phone; GNS_BUNKER_URL)
--reuse-identity Keep identity.json, refresh signing + git only
Signing override (optional — at most one):
--signing-nsec … Different local key for commits
--signing-bunker-url … Different Amber bunker for commits
Git (pick one):
--git-global Global gpg.program + signing
--git-local This repo only (must be inside a git work tree)
--no-git-config Only write config.json / identity.json
--no-pre-push-hook Skip core.hooksPath .githooks
Examples:
git-nostr-setup -N --generate-identity --git-global
git-nostr-setup -N --identity-nsec "$GNS_IDENTITY_NSEC" --git-global
git-nostr-setup -N --bunker-url 'bunker://…' --git-local
NIP-46 still needs Amber approval the first time. QR: set GNS_QR_SMALL=1 for a smaller pattern.
Secrets in argv hit shell history — prefer env vars.reply
Tested through
npm run setup, which doesn't terminate on the menu when ran like that.Findings from setup process:
new keypairroute (option 3), I get the npub echo'd to me, but then after skipping step 2 (because codeberg is still centralized, so let's not) I am asked to type the nsec. This is odd, because I was never given it. When I enter nothing, it terminates.You really, really, really need more testing.