MCPcopy Index your code
hub / github.com/code-pushup/cli / filePathToCliArg

Function filePathToCliArg

packages/utils/src/lib/file-system.ts:135–138  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

133}
134
135export function filePathToCliArg(filePath: string): string {
136 // needs to be escaped if spaces included
137 return `"${filePath}"`;
138}
139
140export function projectToFilename(project: string): string {
141 return project.replace(/[/\\\s]+/g, '-').replace(/@/g, '');

Callers 2

executeLintFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected