go-w3s-client icon indicating copy to clipboard operation
go-w3s-client copied to clipboard

Very simple command line

Open fadyanwar opened this issue 3 years ago • 5 comments

I've created this command line for personal use since the example main.go didn't take in args for files to upload, so I thought I might be sharing it as well.

fadyanwar avatar Jan 09 '22 00:01 fadyanwar

Also implemented one of TODOs to retry on failure in the client library file put.go

fadyanwar avatar Jan 13 '22 19:01 fadyanwar

Hey @fadyanwar. If it helps, we have a JS CLI you can use instead: https://github.com/web3-storage/web3.storage/tree/main/packages/w3.

LeslieOA avatar Jan 24 '22 14:01 LeslieOA

Thanks @LeslieOA for the tip, I was already reviewing this repo to see how you guys do it :) So definitely going to check it out. That being said, I had an impression that Go is better when it comes to IO and memory management since it compiles to native code rather than interpreted as in JS. I'm saying this because I already had an issue uploading large files using the JS library as well as the website itself.

fadyanwar avatar Jan 25 '22 16:01 fadyanwar

@fadyanwar btw duplicates of #12 :)

I don't know which one of the PRs is better.

Jorropo avatar Jan 30 '22 12:01 Jorropo

Hi @Jorropo thanks for letting me know. I didn't realize that there was an existing PR with a command line till I wrote this one. Yours appears to have more features i.e. flags, mine was just intended as a simple CLI that takes in just the file name. I did however include a commit for the library itself to retry on failure. Should I seperate it in a new PR?

fadyanwar avatar Feb 02 '22 23:02 fadyanwar