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

Method Download

pkg/cmd/run/download/http.go:27–29  ·  view source on GitHub ↗
(url safeurl.SafeURL, dir safepaths.Absolute)

Source from the content-addressed store, hash-verified

25}
26
27func (p *apiPlatform) Download(url safeurl.SafeURL, dir safepaths.Absolute) error {
28 return downloadArtifact(p.client, url, dir)
29}
30
31func downloadArtifact(httpClient *http.Client, url safeurl.SafeURL, destDir safepaths.Absolute) error {
32 // TODO(api-client-rollout)

Callers 1

Test_DownloadFunction · 0.95

Calls 1

downloadArtifactFunction · 0.85

Tested by 1

Test_DownloadFunction · 0.76