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

Function cli_activation_restore_env

tests/test_cli.c:518–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516}
517
518static void cli_activation_restore_env(char *home, char *cache) {
519 if (home) {
520 cbm_setenv("HOME", home, 1);
521 } else {
522 cbm_unsetenv("HOME");
523 }
524 if (cache) {
525 cbm_setenv("CBM_CACHE_DIR", cache, 1);
526 } else {
527 cbm_unsetenv("CBM_CACHE_DIR");
528 }
529 free(home);
530 free(cache);
531}
532
533/* Helper: create tar.gz with a single file */
534static unsigned char *create_test_targz(const char *filename, const unsigned char *content,

Callers 1

test_cli.cFile · 0.85

Calls 2

cbm_setenvFunction · 0.85
cbm_unsetenvFunction · 0.85

Tested by

no test coverage detected