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

Add halt! to stop Clerk #43

Merged
merged 2 commits into from
Jan 12, 2022
Merged

Add halt! to stop Clerk #43

merged 2 commits into from
Jan 12, 2022

Conversation

SneakyPeet
Copy link
Contributor

It would be great to be able to stop clerk via the repl using a single command. This PR achieves that by

  1. Extracting the webserver stop code out of nextjournal.clerk.webserver/start! into the stop! function
  2. Extracting the beholder stop code out of nextjournal.clerk/serve! into the stop-watcher! function
  3. Adding a new function nextjournal.clerk/halt! that calls both functions from 1 and 2

@mk mk changed the title Add halt! to allow stopping the server and watcher Add halt! to stop Clerk Jan 12, 2022
@mk mk merged commit 4ca2a05 into nextjournal:main Jan 12, 2022
@mk
Copy link
Member

mk commented Jan 12, 2022

Hey @SneakyPeet, sorry it took a while to get around to this but it's now merged after some minor changes. Thanks for your PR!

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.

2 participants