ipfs-log
ipfs-log copied to clipboard
Add a CLI tool
It would be great to have a CLI tool to manage logs.
The basic commands would be:
$ ipfs-log create
QmFoo1
$ ipfs-log append QmFoo1 "hello world"
QmFoo2
$ ipfs-log values QmFoo2
[{ payload: "hello world", ... }]
$ ipfs-log create --id 'logB'
QmFoo3
$ ipfs-log append QmFoo3 "hi"
QmFoo4
$ ipfs-log join QmFoo2 QmFoo4
QmFoo5
$ ipfs-log values QmFoo5 --size 2
[{ payload: "hello world", ... }, { payload: "hi", ... }]
I would use yargs to wrap the commands.
This one is up to grabs and if anyone wants to work on this, feel free to assign it to yourself or claim it here by saying so in a comment.
hey @haadcode could I take a look at this?
@grantlouisherman I'm not @haadcode but YES :)
Hey @aphelionz @haadcode ipfs-log create
command. Did you envision this would be the creation of a new instance of a Log?