mirror of
https://github.com/jb55/nostril.git
synced 2024-11-24 00:49:07 -05:00
Merge branch 'jb55:master' into master
This commit is contained in:
commit
d331a0359b
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ all: nostril docs
|
||||||
|
|
||||||
docs: doc/nostril.1
|
docs: doc/nostril.1
|
||||||
|
|
||||||
doc/nostril.1: README.txt
|
doc/nostril.1: README.md
|
||||||
scdoc < $^ > $@
|
scdoc < $^ > $@
|
||||||
|
|
||||||
version: nostril.c
|
version: nostril.c
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -7,3 +7,15 @@ $ make
|
||||||
# Optional - install to system PATH
|
# Optional - install to system PATH
|
||||||
|
|
||||||
$ sudo make install
|
$ sudo make install
|
||||||
|
|
||||||
|
######################
|
||||||
|
|
||||||
|
Ubuntu
|
||||||
|
------
|
||||||
|
|
||||||
|
$ sudo apt install libtool make automake
|
||||||
|
$ make
|
||||||
|
|
||||||
|
# Optional - install to system PATH
|
||||||
|
|
||||||
|
$ sudo make install
|
||||||
|
|
|
@ -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