MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / scriptExists

Function scriptExists

internal/cli/detect.go:347–353  ·  view source on GitHub ↗
(scripts map[string]string, key string)

Source from the content-addressed store, hash-verified

345}
346
347func scriptExists(scripts map[string]string, key string) bool {
348 if scripts == nil {
349 return false
350 }
351 _, ok := scripts[key]
352 return ok
353}
354
355func readPackageManifest(path string) (*packageManifest, error) {
356 data, err := os.ReadFile(path)

Callers 1

detectFrontendProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected