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

Function cli_activation_restore_env

tests/test_cli.c:517–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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