Commit Graph

12 Commits

Author SHA1 Message Date
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