MCPcopy Create free account
hub / github.com/cli/cli / createJSONLinesFilePath

Method createJSONLinesFilePath

pkg/cmd/attestation/download/metadata.go:24–30  ·  view source on GitHub ↗
(artifact string)

Source from the content-addressed store, hash-verified

22}
23
24func (s *LiveStore) createJSONLinesFilePath(artifact string) string {
25 path := s.createJSONLinesFileName(artifact)
26 if s.outputPath != "" {
27 return fmt.Sprintf("%s/%s", s.outputPath, path)
28 }
29 return path
30}
31
32func (s *LiveStore) createJSONLinesFileName(artifact string) string {
33 if runtime.GOOS == "windows" {

Callers 3

createMetadataFileMethod · 0.95
TestRunDownloadFunction · 0.80

Calls 1

Tested by 2

TestRunDownloadFunction · 0.64