ipfs-shipyard / ipfs-deploy

Zero-Config CLI to Deploy Static Websites to IPFS
Other
1.16k stars 122 forks source link

feat: adds options to alter logging behavior #174

Closed mikeshultz closed 4 years ago

mikeshultz commented 4 years ago

We're using this package as a library, not as a CLI utility. The CLI spinner(ora) outputs everything to stderr making clean log parsing and error detection difficult.

This PR adds writeLog and writeError options to the main deploy function that when set will replace ora for log output.

Let me know if you have any feedback. This (or something like it) would be pretty useful to us.

hacdias commented 4 years ago

Thanks for this @mikeshultz!