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

Function sh_deploy_src

src/pipeline/pass_shell.c:1673–1685  ·  view source on GitHub ↗

What a `kubectl apply -f -` reading the pipe deploys. */

Source from the content-addressed store, hash-verified

1671
1672/* What a `kubectl apply -f -` reading the pipe deploys. */
1673static void sh_deploy_src(sh_t *s, TSNode cmd, const sh_src_t *src) {
1674 if (!src || src->kind == SH_SRC_NONE || !src->v) {
1675 return;
1676 }
1677 if (src->kind == SH_SRC_CHART) {
1678 sh_chart(s, cmd, src->v);
1679 return;
1680 }
1681 sh_targets_t ts = {0};
1682 sh_targets_of(s, src->v, sh_t_kust, NULL, &ts);
1683 sh_hit_all(s, cmd, src->via, &ts, false);
1684 cbm_free(CBM_MEM_CLASS_OTHER, ts.items);
1685}
1686
1687/* find DIR [-type f] [-name G] [-maxdepth N] -exec kubectl apply -f {} \; */
1688static void sh_find(sh_t *s, TSNode cmd, const sh_argv_t *a, int prog) {

Callers 1

sh_kubectlFunction · 0.85

Calls 4

sh_chartFunction · 0.85
sh_targets_ofFunction · 0.85
sh_hit_allFunction · 0.85
cbm_freeFunction · 0.85

Tested by

no test coverage detected