MCPcopy Create free account
hub / github.com/github/gh-aw / resolveAuditOutputDir

Function resolveAuditOutputDir

pkg/cli/audit.go:398–406  ·  view source on GitHub ↗
(outputDir string, runID int64)

Source from the content-addressed store, hash-verified

396}
397
398func resolveAuditOutputDir(outputDir string, runID int64) string {
399 runOutputDir := filepath.Join(outputDir, fmt.Sprintf("run-%d", runID))
400 if absDir, err := filepath.Abs(runOutputDir); err == nil {
401 return absDir
402 } else {
403 auditLog.Printf("Failed to resolve absolute path for output directory %q: %v", runOutputDir, err)
404 }
405 return runOutputDir
406}
407
408func ensureAuditNotCancelled(ctx context.Context) error {
409 select {

Callers 1

newAuditRunConfigFunction · 0.85

Calls 1

PrintfMethod · 0.45

Tested by

no test coverage detected