MCPcopy
hub / github.com/antfu/skills / exec

Function exec

scripts/cli.ts:12–14  ·  view source on GitHub ↗
(cmd: string, cwd = root)

Source from the content-addressed store, hash-verified

10const root = join(__dirname, '..')
11
12function exec(cmd: string, cwd = root): string {
13 return execSync(cmd, { cwd, encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'] }).trim()
14}
15
16function execSafe(cmd: string, cwd = root): string | null {
17 try {

Callers 5

execSafeFunction · 0.85
removeSubmoduleFunction · 0.85
initSubmodulesFunction · 0.85
syncSubmodulesFunction · 0.85
checkUpdatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected