MCPcopy
hub / github.com/cli/cli / Download

Method Download

pkg/cmd/run/download/http.go:26–28  ·  view source on GitHub ↗
(url string, dir safepaths.Absolute)

Source from the content-addressed store, hash-verified

24}
25
26func (p *apiPlatform) Download(url string, dir safepaths.Absolute) error {
27 return downloadArtifact(p.client, url, dir)
28}
29
30func downloadArtifact(httpClient *http.Client, url string, destDir safepaths.Absolute) error {
31 req, err := http.NewRequest("GET", url, nil)

Callers 1

Test_DownloadFunction · 0.95

Calls 1

downloadArtifactFunction · 0.85

Tested by 1

Test_DownloadFunction · 0.76