ipfs-log icon indicating copy to clipboard operation
ipfs-log copied to clipboard

Add a CLI tool

Open haadcode opened this issue 7 years ago • 3 comments

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.

haadcode avatar Mar 23 '17 07:03 haadcode

hey @haadcode could I take a look at this?

grantlouisherman avatar Oct 13 '19 04:10 grantlouisherman

@grantlouisherman I'm not @haadcode but YES :)

aphelionz avatar Oct 13 '19 09:10 aphelionz

Hey @aphelionz @haadcode ipfs-log create command. Did you envision this would be the creation of a new instance of a Log?

grantlouisherman avatar Oct 17 '19 18:10 grantlouisherman