MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / getInitialPrompt

Function getInitialPrompt

compatible-shell/src/cli.mjs:273–284  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

271}
272
273async function getInitialPrompt(options) {
274 if (options.prompt) {
275 return options.prompt
276 }
277
278 if (!process.stdin.isTTY) {
279 const text = await fs.readFile(process.stdin.fd, 'utf8').catch(() => '')
280 return text.trim()
281 }
282
283 return ''
284}
285
286function parseArgs(argv) {
287 const options = {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected