mirror of
https://github.com/jb55/nostril.git
synced 2024-05-19 19:14:09 -04:00
Compare commits
2 Commits
65c7077cce
...
8726ad3b15
Author | SHA1 | Date | |
---|---|---|---|
|
8726ad3b15 | ||
|
d657ccdf84 |
|
@ -30,6 +30,9 @@ nostril - generate nostr events
|
||||||
*--created-at* <unix timestamp>
|
*--created-at* <unix timestamp>
|
||||||
Set the created at. Optional, this is set automatically.
|
Set the created at. Optional, this is set automatically.
|
||||||
|
|
||||||
|
*--sec* <hex seckey>
|
||||||
|
Set the secret key for signing, otherwise one will be randomly generated.
|
||||||
|
|
||||||
*--mine-pubkey*
|
*--mine-pubkey*
|
||||||
Mine a pubkey. This may or may not be cryptographically dubious.
|
Mine a pubkey. This may or may not be cryptographically dubious.
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,11 @@ Set the kind of the note
|
||||||
Set the created at.\& Optional, this is set automatically.\&
|
Set the created at.\& Optional, this is set automatically.\&
|
||||||
.P
|
.P
|
||||||
.RE
|
.RE
|
||||||
|
\fB--sec\fR <hex seckey>
|
||||||
|
.RS 4
|
||||||
|
Set the secret key for signing, otherwise one will be randomly generated.\&
|
||||||
|
.P
|
||||||
|
.RE
|
||||||
\fB--mine-pubkey\fR
|
\fB--mine-pubkey\fR
|
||||||
.RS 4
|
.RS 4
|
||||||
Mine a pubkey.\& This may or may not be cryptographically dubious.\&
|
Mine a pubkey.\& This may or may not be cryptographically dubious.\&
|
||||||
|
|
|
@ -8,6 +8,7 @@ parser = argparse.ArgumentParser(prog = 'nostril-query', description = 'Construc
|
||||||
parser.add_argument('-a', '--authors')
|
parser.add_argument('-a', '--authors')
|
||||||
parser.add_argument('-p', '--mentions')
|
parser.add_argument('-p', '--mentions')
|
||||||
parser.add_argument('-e', '--references')
|
parser.add_argument('-e', '--references')
|
||||||
|
parser.add_argument('-d', '--parameter')
|
||||||
parser.add_argument('-t', '--hashtag')
|
parser.add_argument('-t', '--hashtag')
|
||||||
parser.add_argument('-i', '--ids')
|
parser.add_argument('-i', '--ids')
|
||||||
parser.add_argument('-k', '--kinds')
|
parser.add_argument('-k', '--kinds')
|
||||||
|
@ -48,6 +49,9 @@ if args.mentions is not None:
|
||||||
if args.references is not None:
|
if args.references is not None:
|
||||||
filt["#e"] = args.references.split(",")
|
filt["#e"] = args.references.split(",")
|
||||||
|
|
||||||
|
if args.parameter is not None:
|
||||||
|
filt["#d"] = args.parameter.split(",")
|
||||||
|
|
||||||
if args.kinds is not None:
|
if args.kinds is not None:
|
||||||
kinds = args.kinds.split(",")
|
kinds = args.kinds.split(",")
|
||||||
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]
|
filt["kinds"] = [a for a in map(lambda s: int(s), kinds)]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user