Commit Graph

33 Commits

Author SHA1 Message Date
fiatjaf d3975679e4 add labels to subscriptions for easier debugging. 2025-08-14 13:28:15 -03:00
fiatjaf 67e291e80d nak publish 2025-05-06 00:56:49 -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 17920d8aef adapt to go-nostr's new methods that take just one filter (and paginator). 2025-02-13 23:10:18 -03:00
fiatjaf ff8701a3b0 fetch: stop adding kind:0 to all requests when they already have a kind specified. 2025-02-03 15:54:12 -03:00
fiatjaf 5509095277 nak outbox 2025-01-18 18:40:19 -03:00
fiatjaf 2b5f3355bc use a single global sdk.System and its Pool. 2024-09-17 11:33:02 -03:00
fiatjaf 8a934cc76b fix fetch naddr missing kind. 2024-08-28 16:13:19 -03:00
fiatjaf 6d23509d8c fetch: handle note1 case. 2024-08-25 17:10:06 -03:00
fiatjaf 0240866fa1 fix fetch for non-pubkey cases. 2024-08-20 18:39:17 -03:00
fiatjaf ea7b88cfd7 fix `fetch` with nip05 filter and make `req` filter options generalize to `fetch`.
related: https://github.com/fiatjaf/nak/issues/19
2024-08-20 10:59:38 -03:00
fiatjaf 2042b14578 nak fetch: support nip05 codes.
addresses https://github.com/fiatjaf/nak/issues/19
2024-08-20 10:48:09 -03:00
fiatjaf 2edfa5cbea nak serve 2024-08-19 12:49:52 -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 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 a30f422d7d
close relay websockets cleanly. 2024-01-11 21:29:46 -03:00
fiatjaf 16c1e795bd
fetch: more places to fetch relay lists from. 2024-01-02 11:05:43 -03:00
fiatjaf 15217f2466
fetch: fix handling of --relay tags. 2023-11-15 09:48:57 -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 5722061bf3
update go-nostr and sdk to standalone module. 2023-11-08 00:13:28 -03:00
fiatjaf ffa41046fd
fetch with optional --relay flags. 2023-10-20 21:01:11 -03:00
fiatjaf 757a6eb313
support fetch npub 2023-10-20 20:57:41 -03:00
fiatjaf 208d909727
support reading from stdin. 2023-10-20 20:57:29 -03:00
fiatjaf 459b127988
fetch: use relay hints from author pubkeys. 2023-10-15 09:22:45 -03:00
fiatjaf db157e6181
fetch method to fetch events from nip19 codes and relay hints. 2023-10-15 09:18:23 -03:00