MCPcopy Create free account
hub / github.com/diillson/chatcli / findLocalPolicyPath

Function findLocalPolicyPath

cli/coder/policy_manager.go:361–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

359}
360
361func findLocalPolicyPath() string {
362 wd, err := os.Getwd()
363 if err != nil {
364 return ""
365 }
366 path := filepath.Join(wd, "coder_policy.json")
367 if _, err := os.Stat(path); err == nil {
368 return path
369 }
370 return ""
371}
372
373// matchesWithBoundary checks if fullCommand starts with pattern, applying a
374// word-boundary check only when the pattern ends with a word character (letter,

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected