Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boot without connection & only print disconnected once #49

Merged
merged 2 commits into from
Oct 21, 2019

Conversation

trentgill
Copy link
Collaborator

fixes #43
fixes #14

Track whether a connection is currently active. Only print connect/disconnect on the state change.
On boot, run the 'reconnect' routine, which is essentially just connect that doesn't quit.

NB: I made the CLI options sys.exit(1) if no crow is found on boot because they would otherwise just load into the REPL if no device was found which seems incorrect behaviour for a CLI tool. Instead it returns with an errorcode and tells the user there's no crow detected.

Copy link
Member

@simonvanderveldt simonvanderveldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NB: I made the CLI options sys.exit(1) if no crow is found on boot because they would otherwise just load into the REPL if no device was found which seems incorrect behaviour for a CLI tool. Instead it returns with an errorcode and tells the user there's no crow detected.

Tbh I think we should drop that option (especially once filesystem navigation is include in the REPL), it feels like an odd inbetween thing to me.

src/druid/repl.py Outdated Show resolved Hide resolved
@trentgill trentgill merged commit 6060ee7 into master Oct 21, 2019
@trentgill trentgill deleted the boot-without-connection branch October 21, 2019 21:59
@simonvanderveldt simonvanderveldt added this to the 0.2.0 milestone Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

run druid without active connection When disconnected druid continually fills the console with messages
3 participants