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

Function dk_workdir

src/pipeline/pass_docker.c:1062–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1060}
1061
1062static void dk_workdir(dk_t *d, TSNode ins) {
1063 for (uint32_t i = 0; i < ts_node_named_child_count(ins); i++) {
1064 TSNode pn = ts_node_named_child(ins, i);
1065 if (!dk_type(pn, "path")) {
1066 continue;
1067 }
1068 const char *raw = dk_text(d, pn);
1069 const char *v = raw ? dk_expand(d, d->local, raw) : NULL;
1070 const char *w = v ? v : raw;
1071 if (w) {
1072 d->workdir = dk_absolute(d, w, d->workdir);
1073 }
1074 return;
1075 }
1076}
1077
1078/* ENTRYPOINT / CMD of the current stage: its argv, as written. */
1079static void dk_entry(dk_t *d, TSNode ins, dk_entry_t *e) {

Callers 1

dk_fileFunction · 0.85

Calls 4

dk_typeFunction · 0.85
dk_textFunction · 0.85
dk_expandFunction · 0.85
dk_absoluteFunction · 0.85

Tested by

no test coverage detected