MCPcopy Create free account
hub / github.com/JordanCoin/codemap / stopDaemon

Function stopDaemon

cmd/hooks.go:1338–1348  ·  view source on GitHub ↗

stopDaemon stops the watch daemon

(root string)

Source from the content-addressed store, hash-verified

1336
1337// stopDaemon stops the watch daemon
1338func stopDaemon(root string) {
1339 if !hookWatchIsRunning(root) {
1340 return
1341 }
1342 exe, err := hookExecutablePath()
1343 if err != nil {
1344 return
1345 }
1346 cmd := hookExecCommand(exe, "watch", "stop", root)
1347 cmd.Run()
1348}
1349
1350// extractFilePathFromStdin reads JSON from stdin and extracts file_path
1351func extractFilePathFromStdin() (string, error) {

Callers 3

hookSessionStartFunction · 0.85
hookSessionStopFunction · 0.85

Calls

no outgoing calls