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

Function cli_activation_restore_env

tests/test_cli.c:928–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926}
927
928static void cli_activation_restore_env(char *home, char *cache) {
929 if (home) {
930 cbm_setenv("HOME", home, 1);
931 } else {
932 cbm_unsetenv("HOME");
933 }
934 if (cache) {
935 cbm_setenv("CBM_CACHE_DIR", cache, 1);
936 } else {
937 cbm_unsetenv("CBM_CACHE_DIR");
938 }
939 free(home);
940 free(cache);
941}
942
943/* Helper: create tar.gz with a single file */
944static unsigned char *create_test_targz(const char *filename, const unsigned char *content,

Callers 3

test_cli.cFile · 0.85
cli_scope_fixture_finishFunction · 0.85

Calls 2

cbm_setenvFunction · 0.85
cbm_unsetenvFunction · 0.85

Tested by

no test coverage detected