MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / getPubExecutionInfo

Function getPubExecutionInfo

src/shared/processes.ts:71–77  ·  view source on GitHub ↗
(dartSdkPath: string, args: string[])

Source from the content-addressed store, hash-verified

69type SpawnFunction = (workingDirectory: string | undefined, binPath: string, args: string[], env: Record<string, string | undefined> | undefined) => SpawnedProcess;
70
71export function getPubExecutionInfo(dartSdkPath: string, args: string[]): ExecutionInfo {
72 // TODO(dantup): Inline this now there's no condition?
73 return {
74 args: ["pub", ...args],
75 executable: path.join(dartSdkPath, dartVMPath),
76 };
77}
78
79export interface ExecutionInfo {
80 executable: string;

Callers 3

spawnRunDaemonMethod · 0.90
runPubInFolderMethod · 0.90
runCommandMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected