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, openDestination func() (*safepaths.Root, error))

Source from the content-addressed store, hash-verified

25}
26
27func (p *apiPlatform) Download(url safeurl.SafeURL, openDestination func() (*safepaths.Root, error)) error {
28 return downloadArtifact(p.client, p.repo.RepoHost(), url, openDestination)
29}
30
31func downloadArtifact(httpClient *http.Client, hostname string, url safeurl.SafeURL, openDestination func() (*safepaths.Root, error)) (downloadErr error) {
32 // The server rejects this :(

Callers 1

Test_DownloadFunction · 0.95

Calls 2

downloadArtifactFunction · 0.70
RepoHostMethod · 0.65

Tested by 1

Test_DownloadFunction · 0.76