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

Function startDaemon

cmd/hooks.go:635–647  ·  view source on GitHub ↗

startDaemon launches the watch daemon in background

(root string)

Source from the content-addressed store, hash-verified

633
634// startDaemon launches the watch daemon in background
635func startDaemon(root string) {
636 exe, err := hookExecutablePath()
637 if err != nil {
638 return
639 }
640 cmd := hookExecCommand(exe, "watch", "start", root)
641 cmd.Stdout = nil
642 cmd.Stderr = nil
643 cmd.Stdin = nil
644 cmd.Start()
645 // Give daemon a moment to initialize
646 daemonStartupPause(200 * time.Millisecond)
647}
648
649// hookPreEdit warns before editing hub files (reads JSON from stdin)
650func hookPreEdit(root string) error {

Callers 2

hookSessionStartFunction · 0.85

Calls 1

StartMethod · 0.65