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

Function detect_os

src/cli/cli.c:3133–3141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3131/* ── Detect OS/arch for download URL ──────────────────────────── */
3132
3133static const char *detect_os(void) {
3134#ifdef _WIN32
3135 return "windows";
3136#elif defined(__APPLE__)
3137 return "darwin";
3138#else
3139 return "linux";
3140#endif
3141}
3142
3143static const char *detect_arch(void) {
3144#if defined(__aarch64__) || defined(_M_ARM64)

Callers 1

cbm_cmd_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected