MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/scion / PrintUsingHub

Function PrintUsingHub

cmd/common.go:302–307  ·  view source on GitHub ↗

PrintUsingHub prints the informational message about using the Hub to stderr. It is suppressed entirely in JSON output mode to keep stdout clean.

(endpoint string)

Source from the content-addressed store, hash-verified

300 root, err := util.RepoRootDir(projectDir)
301 if err != nil {
302 return nil
303 }
304
305 rel, err := filepath.Rel(root, projectDir)
306 if err != nil || strings.HasPrefix(rel, "..") {
307 return nil
308 }
309
310 agentsPath := filepath.ToSlash(filepath.Join(rel, "agents"))

Callers 15

getHubLogsFunction · 0.85
stopAllAgentsViaHubFunction · 0.85
stopAgentViaHubFunction · 0.85
attachViaHubFunction · 0.85
sendMessageViaHubFunction · 0.85
sendGroupMessageViaHubFunction · 0.85
scheduleMessageViaHubFunction · 0.85
message.goFile · 0.85
harness_config.goFile · 0.85
startAgentViaHubFunction · 0.85
runTemplateSyncFunction · 0.85

Calls 1

isJSONOutputFunction · 0.85

Tested by 1