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

Function usingCustomScript

src/shared/utils.ts:133–141  ·  view source on GitHub ↗
(binPath: string, binArgs: string[], customScript: CustomScript | undefined)

Source from the content-addressed store, hash-verified

131}
132
133export function usingCustomScript(binPath: string, binArgs: string[], customScript: CustomScript | undefined): ExecutionInfo {
134 if (customScript?.script) {
135 binPath = customScript.script;
136 if (customScript.replacesArgs)
137 binArgs = binArgs.slice(customScript.replacesArgs);
138 }
139
140 return { executable: binPath, args: binArgs };
141}
142
143export function errorString(error: any): string {
144 if (!error)

Callers 4

spawnRunDaemonMethod · 0.90
runFlutterInFolderMethod · 0.90
constructorMethod · 0.90
connectMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected