MCPcopy Create free account
hub / github.com/chhoumann/quickadd / toInstanceShellExports

Function toInstanceShellExports

scripts/start-obsidian-e2e-instance.mjs:586–591  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

584}
585
586export function toInstanceShellExports(result) {
587 return [
588 toShellExports(result),
589 `export QUICKADD_E2E_OBSIDIAN_HOME=${shellQuote(result.obsidianHome)}`,
590 ].join("\n");
591}
592
593function shellQuote(value) {
594 return `'${String(value).replaceAll("'", "'\\''")}'`;

Callers 2

mainFunction · 0.85

Calls 2

toShellExportsFunction · 0.90
shellQuoteFunction · 0.70

Tested by

no test coverage detected