MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / readProjectInstructionFile

Function readProjectInstructionFile

agentContext/builder.go:307–313  ·  view source on GitHub ↗
(directory string)

Source from the content-addressed store, hash-verified

305 }
306 return strings.Join(lines, "\n")
307}
308
309func secondsDuration(seconds float32) time.Duration {
310 return time.Duration(float64(seconds) * float64(time.Second))
311}
312
313func runGitCommand(cwd string, timeout time.Duration, args ...string) (string, bool) {
314 ctx, cancel := context.WithTimeout(context.Background(), timeout)
315 defer cancel()
316 cmd := exec.CommandContext(ctx, "git", args...)

Callers

nothing calls this directly

Tested by

no test coverage detected