Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show env var, reset terminal mode #50

Closed
wants to merge 6 commits into from
Closed

Conversation

mleku
Copy link
Contributor

@mleku mleku commented Jan 8, 2025

this does all the things mentioned in the related issue

closes #49

@SilberWitch
Copy link

Maybe go ahead and AUTH to the ReadMe, as everyone is always looking for that one.

@mleku
Copy link
Contributor Author

mleku commented Jan 9, 2025

oh, i forgot about that... just fixed the missing stuff in the actual help texts... i will add this near the top so it's easy to find

@@ -10,10 +10,21 @@ take a look at the help text that comes in it to learn all possibilities, but he
### make a nostr event signed with the default key (`01`)

```shell
~> nak event
{"id":"53443506e7d09e55b922a2369b80f926007a8a8a8ea5f09df1db59fe1993335e","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1698632644,"kind":1,"tags":[],"content":"hello from the nostr army knife","sig":"4bdb609c975b2b61338c2ff4c7ce91d4afe74bea4ed1601a62e1fd125bd4c0ae6e0166cca96e5cfb7e0f50583eb6a0dd0b66072566299b6007742db56278010c"}
~> nak event {"id":"53443506e7d09e55b922a2369b80f926007a8a8a8ea5f09df1db59fe1993335e","pubkey":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","created_at":1698632644,"kind":1,"tags":[],"content":"hello from the nostr army knife","sig":"4bdb609c975b2b61338c2ff4c7ce91d4afe74bea4ed1601a62e1fd125bd4c0ae6e0166cca96e5cfb7e0f50583eb6a0dd0b66072566299b6007742db56278010c"}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this all in the same line now?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because if you copy it, it won't run if you paste it, why else?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But why do we need this?

event.go Show resolved Hide resolved
helpers_key.go Outdated
@@ -20,8 +22,8 @@ import (
var defaultKeyFlags = []cli.Flag{
&cli.StringFlag{
Name: "sec",
Usage: "secret key to sign the event, as nsec, ncryptsec or hex, or a bunker URL",
DefaultText: "the key '1'",
Usage: "secret key to sign the event, as nsec, ncryptsec or hex, or a bunker URL, it is better to use the environment variable NOSTR_SECRET_KEY ",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to keep a stable key rather than generating a random key each time, 1 is a reasonable choice

@mleku mleku changed the title remove default nsec 1, show env var, reset terminal mode show env var, reset terminal mode Jan 21, 2025
@mleku mleku closed this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove default 1 nsec, maybe replace with random, show env var for sec
3 participants