New returns a Client with sane defaults.
()
| 27 | |
| 28 | // New returns a Client with sane defaults. |
| 29 | func New() *Client { |
| 30 | return &Client{ |
| 31 | HTTPClient: &http.Client{Timeout: 60 * time.Second}, |
| 32 | Timeout: 60 * time.Second, |
| 33 | UserAgent: "code-agent-manager-go", |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // DownloadGitHubZip fetches an owner/repo/branch zip and extracts it under |
| 38 | // destRoot. The returned path is the root of the extracted tree (which |
no outgoing calls