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

Function cli_activation_restore_env

tests/test_cli.c:515–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513}
514
515static void cli_activation_restore_env(char *home, char *cache) {
516 if (home) {
517 cbm_setenv("HOME", home, 1);
518 } else {
519 cbm_unsetenv("HOME");
520 }
521 if (cache) {
522 cbm_setenv("CBM_CACHE_DIR", cache, 1);
523 } else {
524 cbm_unsetenv("CBM_CACHE_DIR");
525 }
526 free(home);
527 free(cache);
528}
529
530/* Helper: create tar.gz with a single file */
531static 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