MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cli_download_protocol

Function cli_download_protocol

src/cli/cli.c:7054–7062  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7052}
7053
7054static const char *cli_download_protocol(const char *url) {
7055 if (url && strncmp(url, "https://", 8) == 0) {
7056 return "=https";
7057 }
7058 if (url && strncmp(url, "file://", 7) == 0 && cli_download_is_explicit_file_override(url)) {
7059 return "=file";
7060 }
7061 return NULL;
7062}
7063
7064/* Download primitives: update was their only caller. */
7065static int cbm_download_to_file(const char *url, const char *dest) {

Callers 2

cbm_download_to_fileFunction · 0.85

Tested by

no test coverage detected