MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / runArgs

Function runArgs

packages/bumpy/src/utils/shell.ts:128–141  ·  view source on GitHub ↗
(args: string[], opts?: { cwd?: string; input?: string })

Source from the content-addressed store, hash-verified

126
127/** Run a command with an argument array — bypasses the shell entirely */
128export function runArgs(args: string[], opts?: { cwd?: string; input?: string }): string {
129 const result = checkIntercept(args, opts);
130 if (result?.intercepted) {
131 if ('error' in result) throw new Error(result.error);
132 return result.result;
133 }
134 const [cmd, ...rest] = args;
135 return execFileSync(cmd!, rest, {
136 cwd: opts?.cwd,
137 input: opts?.input,
138 encoding: 'utf-8',
139 stdio: [opts?.input ? 'pipe' : 'pipe', 'pipe', 'pipe'],
140 }).trim();
141}
142
143/** Async version of runArgs */
144export function runArgsAsync(args: string[], opts?: { cwd?: string; input?: string }): Promise<string> {

Callers 15

versionCommandFunction · 0.90
channelVersionFunction · 0.90
updateLockfileFunction · 0.90
ensureGitIdentityFunction · 0.90
autoPublishFunction · 0.90
pushWithTokenFunction · 0.90
createVersionPrFunction · 0.90
ciChannelReleaseFunction · 0.90
createChannelReleasePrFunction · 0.90
createTagFunction · 0.90
pushWithTagsFunction · 0.90
forcePushTagFunction · 0.90

Calls 1

checkInterceptFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…