Skip to content

Add halt! to stop Clerk#43

Merged
mk merged 2 commits into
nextjournal:mainfrom
SneakyPeet:stop-clerk
Jan 12, 2022
Merged

Add halt! to stop Clerk#43
mk merged 2 commits into
nextjournal:mainfrom
SneakyPeet:stop-clerk

Conversation

@SneakyPeet

Copy link
Copy Markdown
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

mk commented Jan 12, 2022

Copy link
Copy Markdown
Member

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