hypercore-protocol / cli

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

Switch daemon to manual start rather than automatic #50

Closed pfrazee closed 3 years ago

pfrazee commented 3 years ago

Some folks integrating Hyper into Nix were having trouble with the CLI's automatic daemon init and requested we change to manual daemon start only. @mafintosh and I saw now problem with this, though it will need to be a major version bump.

For general errors, hyp exits with code 1. For daemon-not-active, it exits with code 2. That may be useful for anybody orchestrating the daemon to know.

nixinator commented 3 years ago

thanks for taking the time to address this.

andrewosh commented 3 years ago

LGTM. Will merge this and release it with a new major bump -- this behavior does feel more correct

andrewosh commented 3 years ago

Published in 2.0.0