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

Function cli_scope_install

tests/test_cli.c:1938–1951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1936}
1937
1938static int cli_scope_install(cli_scope_fixture_t *fixture, const char *home, const char *cache,
1939 const char *bin_dir, bool skip_binary) {
1940 cbm_setenv("HOME", home, 1);
1941 cbm_setenv("CBM_CACHE_DIR", cache, 1);
1942 cbm_cli_set_activation_runtime_parent_for_test(fixture->runtime_parent);
1943 char dir_arg[704];
1944 snprintf(dir_arg, sizeof(dir_arg), "--dir=%s", bin_dir);
1945 char *install_argv[] = {skip_binary ? "--skip-binary" : "--force", "--skip-config", "--yes",
1946 dir_arg};
1947 int rc = cli_test_cmd_install(4, install_argv);
1948 cbm_cli_set_activation_runtime_parent_for_test(g_cli_suite_runtime_parent);
1949 cbm_set_auto_answer_for_test(0);
1950 return rc;
1951}
1952
1953/* Returns the host child's exit status: 0 released intact,
1954 * CLI_SCOPE_HOST_DRAINED when an activation drained it, -1 unknown. */

Callers 2

test_cli.cFile · 0.85

Calls 4

cbm_setenvFunction · 0.85
cli_test_cmd_installFunction · 0.85

Tested by

no test coverage detected