hypercore-protocol / cli

A CLI for peer-to-peer file sharing using the Hypercore Protocol.
MIT License
205 stars 17 forks source link

--yes option for scripted use #42

Closed Treora closed 3 years ago

Treora commented 3 years ago

For example, to run hyp sync in a cron job once every hour, it would help if hyp skips checking for confirmation (currently it asks Begin sync? [y/N]). Several command line tools have a -y/--yes or similar option to always assume the answer is yes. Could hyp get this too?

ghost commented 3 years ago

yes, you can add -y to bypass all additional user-input

https://github.com/hypercore-protocol/cli/blob/master/lib/commands/drive/sync.js#L45