MCPcopy Index your code
hub / github.com/devcontainers/cli / createFileCommand

Function createFileCommand

src/spec-common/injectHeadless.ts:583–585  ·  view source on GitHub ↗
(location: string)

Source from the content-addressed store, hash-verified

581}
582
583export function createFileCommand(location: string) {
584 return `test ! -f '${location}' && set -o noclobber && mkdir -p '${path.posix.dirname(location)}' && { > '${location}' ; } 2> /dev/null`;
585}
586
587export async function runRemoteCommand(params: { output: Log; onDidInput?: Event<string>; stdin?: NodeJS.ReadStream; stdout?: NodeJS.WriteStream; stderr?: NodeJS.WriteStream }, { remoteExec, remotePtyExec }: ContainerProperties, cmd: string[], cwd?: string, options: { remoteEnv?: NodeJS.ProcessEnv; pty?: boolean; print?: 'off' | 'continuous' | 'end' } = {}) {
588 const print = options.print || 'end';

Callers 2

installDotfilesFunction · 0.90
createFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected