watchfiles
watchfiles copied to clipboard
IDEA: manually or force restart
I would like to have some command line shortcut to force process restart, for example "CMD+R" or "CTRL+R". Few use case which I have for that feature:
- I have a slow laptop and would like to restart the process, only when I finished editing.
- I work with translations and I want to restart my project, only when I needed: some translations are worth to test, some not.
What do you think about that? If idea is valid, probably I can implement that feature.
Humm, but how are you going to detect the input?
Would this work when used by a third party app, like uvicorn?
How complex wild the implementation be?
I'm keen if we can do it right.
Maybe create a proof of concept PR, and we'll review from there.