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

Function sh_command

src/pipeline/pass_shell.c:2521–2533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2519}
2520
2521static void sh_command(sh_t *s, TSNode cmd) {
2522 sh_walk_substs(s, cmd);
2523 sh_argv_t a = {0};
2524 sh_argv_build(s, cmd, &a);
2525 if (!sh_chdir(s, &a)) {
2526 sh_src_t out;
2527 sh_deploy_command(s, cmd, &a, NULL, &out);
2528 sh_spawn(s, cmd, &a);
2529 sh_build(s, cmd, &a);
2530 sh_http(s, cmd, &a);
2531 }
2532 sh_argv_free(&a);
2533}
2534
2535/* The redirects of a statement: `cat <<EOF | kubectl ...` -- the rest of
2536 * that pipe follows the heredoc start, inside the redirect, and reads the

Callers 1

sh_walkFunction · 0.85

Calls 8

sh_walk_substsFunction · 0.85
sh_argv_buildFunction · 0.85
sh_chdirFunction · 0.85
sh_deploy_commandFunction · 0.85
sh_spawnFunction · 0.85
sh_buildFunction · 0.85
sh_httpFunction · 0.85
sh_argv_freeFunction · 0.85

Tested by

no test coverage detected