MCPcopy Index your code
hub / github.com/blitz-js/blitz / getCommandBin

Function getCommandBin

integration-tests/utils/next-test-utils.ts:135–142  ·  view source on GitHub ↗
(
  command: string,
  rootFolder: string = process.cwd(),
  _usePatched: boolean = false,
)

Source from the content-addressed store, hash-verified

133 return fullPath
134}
135export function getCommandBin(
136 command: string,
137 rootFolder: string = process.cwd(),
138 _usePatched: boolean = false,
139) {
140 const bin = resolveBin(command)
141 return path.resolve(rootFolder, bin)
142}
143
144export function runBlitzCommand(argv, options: RunNextCommandOptions = {}) {
145 const nextnextbin = getCommandBin("blitz", options.cwd)

Callers 4

runBlitzCommandFunction · 0.70
runBlitzCommandDevFunction · 0.70
runNextCommandFunction · 0.70
runNextCommandDevFunction · 0.70

Calls 1

resolveBinFunction · 0.85

Tested by

no test coverage detected