fiatjaf
2193491c3b
encode: support naddr for replaceable events and improve kind and d-tag validation..
...
fixes https://github.com/fiatjaf/nak/issues/122
honestly I don't know why you want to naddr-encode replaceable events, that sounds like an awful idea, but what can I do.
2026-04-18 15:07:27 -03:00
fiatjaf
0834420d89
replace %w with %s in lineProcessingError().
2026-04-05 18:24:59 -03:00
fiatjaf
65ddf7b821
use appendUnique from nostrlib.
2026-04-02 03:24:05 -03:00
fiatjaf
69e4895e48
--outbox flag for encode.
2026-01-08 22:15:54 -03:00
fiatjaf
bef3739a67
accept npub/nprofile/nevent instead of just hex in flags.
2025-11-11 15:58:53 -03:00
fiatjaf
e91a454fc0
nak encode that takes json from stdin.
2025-04-25 13:30:32 -03:00
fiatjaf
d733a31898
convert to using nostrlib.
2025-04-20 18:11:21 -03:00
fiatjaf
26930d40bc
migrate to urfave/cli/v3 again now that they have flags after arguments.
2025-02-16 13:02:04 -03:00
fiatjaf
6e43a6b733
reword NIP-XX to nipXX everywhere.
2025-01-29 19:13:30 -03:00
fiatjaf
9d619ddf00
remove note1 encoding.
2024-11-19 07:47:11 -03:00
fiatjaf
c90e61dbec
set .DisableSliceFlagSeparator to true.
...
fixes nostr:nevent1qqs9qwgwnr2rzguzrgt99hhhyv8e84mcdr4mnk86uvm6ndjvzl4rjxqpzpmhxue69uhkztnwdaejumr0dshsz9mhwden5te0vf5hgcm0d9hx2u3wwdhkx6tpdshszxnhwden5te0vfhhxarj9ekx2cm5w4exjene9ehx2ap0j8u0fj
2024-08-07 11:46:08 -03:00
fiatjaf
928c73513c
just move imports around.
2024-07-30 11:43:14 -03:00
fiatjaf
220fe84f1b
hardcode our fork of urfave/cli because go is stupid.
...
fixes https://github.com/fiatjaf/nak/issues/26
2024-07-23 15:23:13 -03:00
fiatjaf
316d94166e
fix lineProcessingError() -- it wasn't returning a ctx so it was a noop.
2024-07-11 15:33:44 -03:00
fiatjaf
dba2ed0b5f
update to cli v3.
2024-06-25 22:18:26 -03:00
fiatjaf
2135b68106
more aliases in nak encode flags.
2024-06-13 12:05:27 -03:00
fiatjaf
363bd66a8a
accept relay URLs without scheme everywhere.
2024-06-06 15:38:40 -03:00
fiatjaf
569d38a137
accept multiple arguments in many commands, add a lot of more tests.
2024-03-19 11:34:59 -03:00
mattn
01e1f52a70
fix panic ( #12 )
...
* c.Args().Len() - 1 might be negative value
* fix getStdinLinesOrFirstArgument
* fix getStdinLinesOrFirstArgument
2024-02-03 10:03:32 -03:00
fiatjaf
14b69f36cf
-q to silence stderr, -qq to silence everything.
2024-01-24 22:38:51 -03:00
fiatjaf
b17887fe21
replace validate32BytesHex() with native calls from go-nostr.
2024-01-21 07:45:22 -03:00
fiatjaf
d95b6f50ff
--prompt-sec for getting a secret key from a prompt.
2023-11-08 14:26:25 -03:00
fiatjaf
714d65312c
support multiline stdin on decode, encode and fetch, and improve the helpers.
2023-11-08 12:50:36 -03:00
fiatjaf
50dde2117c
don't fail encode when reading from stdin because of the number of arguments.
2023-10-23 08:04:21 -03:00
fiatjaf
ffa41046fd
fetch with optional --relay flags.
2023-10-20 21:01:11 -03:00
fiatjaf
208d909727
support reading from stdin.
2023-10-20 20:57:29 -03:00
fiatjaf
ada76f281a
add encode note.
2023-10-10 11:29:06 -03:00
fiatjaf
f9cf01b48b
do target validation on a case-by-case basis and don't validate empty -author on nevent.
2023-07-08 20:52:50 -03:00
fiatjaf
4ad0769a62
add encode command with support for all the nip19 things.
2023-07-05 15:03:26 -03:00