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

Function getHubInfo

cmd/hooks.go:100–102  ·  view source on GitHub ↗

getHubInfo returns hub info from daemon state. If daemon isn't running, falls back to a fresh scan.

(root string)

Source from the content-addressed store, hash-verified

98// getHubInfo returns hub info from daemon state.
99// If daemon isn't running, falls back to a fresh scan.
100func getHubInfo(root string) *hubInfo {
101 return getHubInfoWithFallback(root, true)
102}
103
104// getHubInfoNoFallback returns cached hub information only.
105// It never triggers expensive graph scans.

Callers 2

TestGetHubInfoNoDepsFunction · 0.85
hookSessionStartFunction · 0.85

Calls 1

getHubInfoWithFallbackFunction · 0.85

Tested by 1

TestGetHubInfoNoDepsFunction · 0.68