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)
| 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")) |