MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / fileToCommandArgument

Function fileToCommandArgument

src/platform/common/helpers.ts:40–45  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

38 * E.g. if an argument contains a space, then it will be enclosed within double quotes.
39 */
40export function fileToCommandArgument(value: string): string {
41 if (!value) {
42 return value;
43 }
44 return toCommandArgument(value).replace(/\\/g, '/');
45}
46
47/**
48 * String.trimQuotes implementation

Callers 6

getInterpreterInfoFunction · 0.90
getPythonCliFunction · 0.90
getExecutionArgsMethod · 0.90

Calls 2

toCommandArgumentFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected