MCPcopy Index your code
hub / github.com/CapSoftware/Cap / run

Function run

scripts/analytics/setup-analytics.js:18–28  ·  view source on GitHub ↗
(command, args, options = {})

Source from the content-addressed store, hash-verified

16const rootTinybPath = path.join(PROJECT_ROOT, ".tinyb");
17
18const run = (command, args, options = {}) => {
19 const result = spawnSync(command, args, {
20 stdio: "inherit",
21 ...options,
22 });
23 if (result.error || result.status !== 0) {
24 const message =
25 result.error?.message || `Command ${command} ${args.join(" ")} failed.`;
26 throw new Error(message);
27 }
28};
29
30const ensureTinybirdCli = () => {
31 try {

Callers 3

ensureTinybirdCliFunction · 0.70
ensureTinybirdLoginFunction · 0.70
deployTinybirdProjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected